Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

UDPIPEncap Element Documentation

NAME

UDPIPEncap — Click element; encapsulates packets in static UDP/IP headers

SYNOPSIS

UDPIPEncap(SRC, SPORT, DST, DPORT [, CHECKSUM])

Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Encapsulates each incoming packet in a UDP/IP packet with source address SRC, source port SPORT, destination address DST, and destination port DPORT. The UDP checksum is calculated if CHECKSUM? is true; it is true by default.

As a special case, if DST is "DST_ANNO", then the destination address is set to the incoming packet's destination address annotation.

The UDPIPEncap element adds both a UDP header and an IP header.

The Strip element can be used by the receiver to get rid of the encapsulation header.

EXAMPLES

  UDPIPEncap(1.0.0.1, 1234, 2.0.0.2, 1234)

ELEMENT HANDLERS

  • src (read/write) — Returns or sets the SRC source address argument.
  • sport (read/write) — Returns or sets the SPORT source port argument.
  • dst (read/write) — Returns or sets the DST destination address argument.
  • dport (read/write) — Returns or sets the DPORT destination port argument.

SEE ALSO

Strip, IPEncap

Generated by click-elem2man from ../elements/tcpudp/udpipencap.hh:9 on 2018/10/03.

Clone this wiki locally