Skip to content
Eddie Kohler edited this page Oct 18, 2017 · 5 revisions

IP6Encap Element Documentation

NAME

IP6Encap — Click element; encapsulates packets in static IP6 header

SYNOPSIS

IP6Encap(PROTO, SRC, DST, KEYWORDS)

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Encapsulates each incoming packet in an IP6 packet with next header proto PROTO, source address SRC, and destination address DST. Its destination address annotation is also set to DST.

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

Keyword arguments are:

  • HLIM — Integer, The hop limit of the packet with maximum value of 255
  • CLASS — Integer, The service class of the packet. Used for QoS

EXAMPLES

Wraps packets in an IP6 header specifying IP protocol 4 (IP6-in-IP4), with source 2000:10:1::2 and destination 2000:20:1::2, HLIM is set to 20 hops:

  IP6Encap(4, 2000:10:1::2, 2000:20:1::2, HLIM 20)

You could also say "IP6Encap(ipip, ...)".

ELEMENT HANDLERS

  • src (read/write) — Returns or sets the SRC parameter.
  • dst (read/write) — Returns or sets the DST parameter.

SEE ALSO

UDPIP6Encap

Generated by click-elem2man from ../../elements/ip6/ip6encap.hh:11 on 2017/10/17.

Clone this wiki locally