Ethereal-dev: [ethereal-dev] patch and file for 802.1q vlan support

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Neulinger, Nathan R." <nneul@xxxxxxx>
Date: Wed, 20 Oct 1999 16:08:30 -0500
First, a warning, this compiles and looks ok, but I haven't had a chance to
test it with real 802.1q packets yet, as I don't have any. This is based off
info obtained from Ben Greear's VLAN patch for linux.

I'm also not sure this is how y'all want to be handling nested protocol
stacks. I have ethertype() call dissect_vlan(), and dissect_vlan calls
ethertype() again after it pulls the VLAN header and info off. 

Basic structure is:

same as standard frame 
	char[6] dest-ether-addr
	char[6] source-ether-addr
	short proto       - 0x8100 for ETHERTYPE_VLAN
vlan specific
	short tci-vlan-info - priority,cfi,vlan-id
	short encapsulated-proto;  - from here on out, same as a standard
frame

Hopefully I'll be getting some trace data soon to try this with.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216

Attachment: packet-vlan.c
Description: Binary data

Attachment: vlan.diff
Description: Binary data