-
Notifications
You must be signed in to change notification settings - Fork 321
StripEtherVLANHeader
StripEtherVLANHeader — Click element; strips 802.1Q VLAN Ethernet header
StripEtherVLANHeader([NATIVE_VLAN])
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push
Strips each packet's 802.1Q header.
Checks the packet's outermost Ethernet type. If that type is 0x8100 (the 802.1Q type), then sets the packet's VLAN annotation to the corresponding 802.1Q field and removes the 18-byte 802.1Q header. Otherwise, the packet is not VLAN encapsulated. The element sets packet's VLAN annotation to the NATIVE_VLAN value and removes the 14-byte Ethernet header.
If NATIVE_VLAN is negative, then non-802.1Q packets are dropped (or emitted from output 1). NATIVE_VLAN defaults to 0.
Generated by click-elem2man from ../elements/ethernet/stripethervlanheader.hh:7
on 2017/10/17.