Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 4 revisions

EtherRewrite Element Documentation

NAME

EtherRewrite — Click element; rewrite source and destination Ethernet address

SYNOPSIS

EtherRewrite(SRC, DST)

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Rewrite the source and the destination address in the Ethernet header. The ETHERTYPE is left untouched.

EXAMPLES

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)

NOTES

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.

ELEMENT HANDLERS

  • src (read/write) — Return or set the SRC parameter.
  • dst (read/write) — Return or set the DST parameter.

SEE ALSO

EtherEncap, EtherVLANEncap, ARPQuerier, EnsureEther, StoreEtherAddress

Generated by click-elem2man from ../elements/ethernet/etherrewrite.hh:7 on 2017/10/17.

Clone this wiki locally