EtherEncap
encapsulates packets in Ethernet header
SYNOPSIS§
EtherEncap(ETHERTYPE, SRC, DST)
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic
DESCRIPTION§
Encapsulates each packet in the Ethernet header specified by its arguments. ETHERTYPE should be in host order.
EXAMPLES§
Encapsulate packets in an Ethernet header with type ETHERTYPE_IP (0x0800), source address 1\:1\:1\:1\:1:1, and destination address 2\:2\:2\:2\:2\:2:
EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2)
NOTES§
For IP packets you probably want to use ARPQuerier instead.
ELEMENT HANDLERS§
- src (read/write) — Return or set the SRC parameter.
- dst (read/write) — Return or set the DST parameter.
- ethertype (read/write) — Return or set the ETHERTYPE parameter.
SEE ALSO§
EtherVLANEncap, ARPQuerier, EnsureEther, StoreEtherAddress, EtherRewrite
Generated by click-elem2man from ../elements/ethernet/etherencap.hh:8 on 2026/11/02.