tcpdump mailing list archives

Re: odd issue with Linux VLAN interface


From: Denis Ovsienko <denis () ovsienko info>
Date: Wed, 28 Jan 2015 00:28:03 +0000


I.e., "tcpdump -i eth0 not tcp" prints *only* TCP packets? 

Yes, exactly. Just checked once again.

Just out of curiosity, what does "tcpdump -i eth0 -d not tcp" print?

root@homepc:~# tcpdump -pni eth0 -d not tcp
(000) ldh      [12]
(001) jeq      #0x86dd          jt 2    jf 7
(002) ldb      [20]
(003) jeq      #0x6             jt 10   jf 4
(004) jeq      #0x2c            jt 5    jf 11
(005) ldb      [54]
(006) jeq      #0x6             jt 10   jf 11
(007) jeq      #0x800           jt 8    jf 11
(008) ldb      [23]
(009) jeq      #0x6             jt 10   jf 11
(010) ret      #0
(011) ret      #262144

-- 
    Denis Ovsienko

_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: