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

GREEncap Element Documentation

NAME

GREEncap -- Click element; encapsulates packets in static GRE header

SYNOPSIS

GREEncap(PROTOCOL, KEYWORDS)

Ports: 1 input, 1 output
Processing: agnostic
Package: iias

DESCRIPTION

Encapsulates each incoming packet in a GRE packet with protocol PROTOCOL. This is most useful for GRE-in-IP encapsulation. Keyword arguments are:

CHECKSUM
Boolean. If true, sets the Checksum Present bit to one and fills the Checksum field with the IP (one's complement) checksum sum of the all the 16 bit words in the GRE header and the payload packet. For purposes of computing the checksum, the value of the checksum field is zero. The StripGREHeader element can be used by the receiver to get rid of the encapsulation header.

EXAMPLES

Wraps packets in a GRE-in-IP header specifying IP protocol 47 (GRE-in-IP), with source 18.26.4.24 and destination 140.247.60.147:

  GREEncap(0x0800)
  IPEncap(47, 18.26.4.24, 140.247.60.147)

SEE ALSO

CheckGREHeader, StripGREHeader

Generated by 'click-elem2man' from 'gre/greencap.hh:29' on 17/Jan/2012.

COMMENTS

 
elements/greencap.txt · Last modified: 2012/01/17 10:23 (external edit)
 
Recent changes RSS feed Driven by DokuWiki