-
Notifications
You must be signed in to change notification settings - Fork 321
EtherRewrite
Eddie Kohler edited this page Oct 17, 2017
·
4 revisions
EtherRewrite — Click element; rewrite source and destination Ethernet address
EtherRewrite(SRC, DST)
Ports: 1 input, 1 output
Processing: agnostic
Rewrite the source and the destination address in the Ethernet header. The ETHERTYPE is left untouched.
Ensure that source address of all packets passing by is 1:1:1:1:1:1, and the destination address is 2:2:2:2:2:2:
EtherRewrite(1:1:1:1:1:1, 2:2:2:2:2:2)
This element is useful if there is only one possible nexthop on a given link (such as for a network-layer transparent firewall), meaning that source and destination ethernet address will always be the same for a given output.
- src (read/write) — Return or set the SRC parameter.
- dst (read/write) — Return or set the DST parameter.
EtherEncap, EtherVLANEncap, ARPQuerier, EnsureEther, StoreEtherAddress
Generated by click-elem2man from ../elements/ethernet/etherrewrite.hh:7
on 2017/10/17.