This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
EnsureEther -- Click element; ensures that IP packets are Ethernet encapsulated
EnsureEther([ETHERTYPE, SRC, DST])
Ports: 1 input, 1 output
Package: ethernet (core)
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 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)
For IP packets you probably want to use ARPQuerier instead.
Generated by 'click-elem2man' from '../elements/ethernet/ensureether.hh' on 20/Feb/2006.