tcpdump mailing list archives

vlan [xx] filter not filtering any packets


From: Nikola Ciprich <extmaillist () linuxbox cz>
Date: Mon, 8 Jun 2009 13:47:41 +0200

Hello,

I've spent some time playing with tcpdump and pcap with regard 
to vlans. Using libpcap 1.0.0 + tcpdump 4.0.0, I can able to 
correctly dump packets including (reconstructed) vlan headers. 
But it seems that using the vlan filter keyword does not work.

example:
$ tcpdump -e -i eth1
13:10:05.592027 00:30:48:92:f6:73 (oui Unknown) > 00:30:48:64:40:9d (oui Unknown), ethertype 802.1Q (0x8100), length 
102: vlan 10, p 0, ethertype IPv4, 10.0.10.1 > 10.0.10.2: ICMP echo request, id 27941, seq 12466, length 64

which is OK. But

$ tcpdump -e -i eth1 vlan
or 
$ tcpdump -e -i eth1 vlan 10

never captures any packet. Am i doing something wrong, or is 
this a bug in pcap/tcpdump?

Thanks a lot for any hints

with best regards

nik

-- 
-------------------------------------
Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava

tel.:   +420 596 603 142
fax:    +420 596 621 273
mobil:  +420 777 093 799
www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis () linuxbox cz
-------------------------------------
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: