Help for this page

Select Code to Download


  1. or download this
    $ tcpdump -d tcp
    (000) ldh      [12]
    ...
    (006) jeq      #0x6             jt 7    jf 8
    (007) ret      #96
    (008) ret      #0
    
  2. or download this
    use constant IPv4 => 0x0800; # Regular TCP/IP
    use constant IPv6 => 0x86dd; # New and improved!
    ...
      return 1 if $proto == TCP;
      return;
    }