This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
EtherVLANEncap -- Click element; encapsulates packets in 802.1Q VLAN Ethernet header
EtherVLANEncap(ETHERTYPE, SRC, DST, VLAN_TCI [, VLAN_PCP, keywords])
Ports: 1 input, 1 output
Package: ethernet (core)
Encapsulates each packet in the 802.1Q header specified by its arguments. The resulting packet looks like an Ethernet packet with type 0x8100. The encapsulated Ethernet type is ETHERTYPE, which should be in host order. The VLAN arguments define the VLAN ID and priority code point. VLAN_TCI is a 16-bit VLAN TCI, including both the VLAN ID and the VLAN PCP. VLAN_TCI may also be the string "ANNO"; in ANNO mode, the encapsulated VLAN TCI is read from the input packet's VLAN_TCI annotation. You may also set the VLAN_ID and VLAN_PCP separately via keywords. If you want to add a VLAN shim header to a packet that's already Ethernet-encapsulated, use VLANEncap. Keyword arguments are:
Encapsulate packets in an 802.1Q Ethernet VLAN header with type ETHERTYPE_IP (0x0800), source address 1:1:1:1:1:1, destination address 2:2:2:2:2:2, and VLAN ID 1:
EtherVLANEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2, 1)
Generated by 'click-elem2man' from '../elements/ethernet/ethervlanencap.hh:7' on 16/Jul/2011.