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

EnsureEther Element Documentation

NAME

EnsureEther -- Click element; ensures that IP packets are Ethernet encapsulated

SYNOPSIS

EnsureEther([ETHERTYPE, SRC, DST])

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

DESCRIPTION

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.

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.

SEE ALSO

EtherEncap

Generated by 'click-elem2man' from '../elements/ethernet/ensureether.hh' on 20/Feb/2006.

COMMENTS

 
elements/ensureether.txt · Last modified: 2006/02/20 10:41 (external edit)
 
Recent changes RSS feed Driven by DokuWiki