This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

EtherEncap Element Documentation

NAME

EtherEncap -- Click element; encapsulates packets in Ethernet header

SYNOPSIS

EtherEncap(ETHERTYPE, SRC, DST)

Ports: 1 input, 1 output
Processing: agnostic
Package: ethernet (core)

DESCRIPTION

Encapsulates each packet in the Ethernet header specified by its arguments. ETHERTYPE should be in host order.

EXAMPLES

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)

NOTES

For IP packets you probably want to use ARPQuerier instead.

ELEMENT HANDLERS

src (read/write)
Return or set the SRC parameter.
dst (read/write)
Return or set the DST parameter.
ethertype (read/write)
Return or set the ETHERTYPE parameter.

SEE ALSO

EtherVLANEncap, ARPQuerier, EnsureEther, StoreEtherAddress

Generated by 'click-elem2man' from '../elements/ethernet/etherencap.hh:7' on 16/Jul/2011.

COMMENTS

 
elements/etherencap.txt · Last modified: 2011/07/16 22:38 (external edit)
 
Recent changes RSS feed Driven by DokuWiki