Skip to content

StripEtherVLANHeader

Tom Barbette edited this page Oct 3, 2018 · 2 revisions

StripEtherVLANHeader Element Documentation

NAME

StripEtherVLANHeader — Click element; strips 802.1Q VLAN Ethernet header

SYNOPSIS

StripEtherVLANHeader([NATIVE_VLAN])

Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push

DESCRIPTION

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.

SEE ALSO

EtherVLANEncap

Generated by click-elem2man from ../elements/ethernet/stripethervlanheader.hh:7 on 2018/10/03.

Clone this wiki locally