-
Notifications
You must be signed in to change notification settings - Fork 321
EnsureEther
EnsureEther — Click element; ensures that IP packets are Ethernet encapsulated
EnsureEther([ETHERTYPE, SRC, DST])
Ports: 1 input, 1 output
Processing: agnostic
Ensures that IP packets are encapsulated in an Ethernet header. Non-IP packets, and IP packets that look Ethernet-encapsulated, are emitted on the first output unchanged. Other IP packets are encapsulated in an Ethernet header before being emitted. If the IP packet looks like it had an Ethernet header that was stripped off, then that header is used. Otherwise, the header specified by the arguments is prepended to the packet.
Encapsulate packets without 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:
EnsureEther(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2)
Generated by click-elem2man from ../elements/ethernet/ensureether.hh:7
on 2017/10/17.