Skip to content
Tom Barbette edited this page May 7, 2020 · 3 revisions

GetEtherAddress Element Documentation

NAME

GetEtherAddress — Click element; stores an ethernet address from a packet into an annotation.

SYNOPSIS

GetEtherAddress(ANNO, OFFSET)

Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: agnostic

DESCRIPTION

Writes an Ethernet address ADDR into the packet at offset OFFSET. If OFFSET is out of range, the input packet is dropped or emitted on optional output 1.

The OFFSET argument may be 'src' or 'dst'. These strings are equivalent to offsets 6 and 0, respectively, which are the offsets into an Ethernet header of the source and destination Ethernet addresses.

SEE ALSO

EtherEncap, SetEtherAddress, StoreEtherAddress

Generated by click-elem2man from ../elements/ethernet/getetheraddress.hh:6 on 2020/05/07.

Clone this wiki locally