-
Notifications
You must be signed in to change notification settings - Fork 82
GREEncap
Tom Barbette edited this page Nov 25, 2022
·
1 revision
GREEncap — Click element; encapsulates packets in static GRE header
GREEncap(PROTOCOL, KEYWORDS)
Ports: 1 input, 1 output
Processing: agnostic
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.
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)
CheckGREHeader, StripGREHeader
Generated by click-elem2man from ../elements/tunnel/greencap.hh:29
on 2022/11/25.