FastClick

Elements / Grid

GridEncap

Encapsulates packets in static Grid data encapsulation header (GRID_NBR_ENCAP), including ethernet, Grid, and grid data encap headers.

SYNOPSIS§

GridEncap(ETH, IP)

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION§

ETH and IP are this node's ethernet and IP addresses, respectively. Sets the ethernet type to the Grid ethertype; sets the ethernet source address to ETH. Sets the Grid src and tx IP to be IP. Sets all locations to invalid. Does not set checksum.

Sets the grid destination IP to the packet's dest_ip annotation.

SEE ALSO§

LookupLocalGridRoute, FixSrcLoc, FixDstLoc, SetGridChecksum

Generated by click-elem2man from ../elements/grid/gridencap.hh:11 on 2026/11/02.