Bug 21880

Summary: Improved VLAN support for libcap/tcpdump
Product: Base System Reporter: peter.jeremy <peter.jeremy>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description peter.jeremy 2000-10-10 01:30:00 UTC
	Whilst tcpdump will correctly decode IEEE 802.1Q VLAN packets,
	it cannot filter them readily.  The patch below adds a new
	"vlan" keyword which alows filtering on specific VLAN numbers
	as well as altering the Ethernet frame decoding offsets to
	suit 802.1Q frames.  It would be trivial to extend this to
	other media types (eg FDDI), but I don't have access to test
	them.

	The patches also add a space following the vlan priority to
	separate it from the source host name.

	Note that (at least for FreeBSD), the tcpdump man page belongs
	in section 8, not section 1.  This requires a repo-copy, as
	well as some trivial patches.

Fix: (Note that the CVS id's below reflect the FreeBSD repository, not the
tcpdump.org repository)
How-To-Repeat: 
	Run tcpdump on a device carrying a VLAN trunk.
Comment 1 Yar Tikhiy freebsd_committer freebsd_triage 2001-04-05 17:11:19 UTC
State Changed
From-To: open->closed

The VLAN support made it's way into the official tcpdump/libpcap 
distribution.