Skip to content
Tom Barbette edited this page Nov 25, 2022 · 3 revisions

LookupIP6Route Element Documentation

NAME

LookupIP6Route — Click element;

SYNOPSIS

LookupIP6Route(DST1 MASK1 GW1 OUT1, DST2 MAS2 GW2 OUT2, ...)

Batching: Batching natively supported
Ports: 1 input, any number of outputs
Processing: push

DESCRIPTION

Input: IP6 packets (no ether header). Expects a destination IP6 address annotation with each packet. Looks up the address, sets the destination annotation to the corresponding GW (if non-zero), and emits the packet on the indicated OUTput.

Each comma-separated argument is a route, specifying a destination and mask, a gateway (zero means none), and an output index.

EXAMPLES

 ... -> GetIP6Address(24) -> rt;
 rt :: LookupIP6Route(
 3ffe:1ce1:2::/128 ::0 0,
 3ffe:1ce1:2:0:200::/128  ::0 0,
 3ffe:1ce1:2:/80 ::0 1,
 3ffe:1ce1:2:0:200::/80: ::0 2,
 0::ffff:0:0/96 ::0 3,
 ::0/0 3ffe:1ce1:2::2 1);
 
 rt[0] -> ToLinux;
 rt[1] -> ... -> ToDevice(eth0);
 rt[2] -> ... -> ToDevice(eth1);
 ...

Generated by click-elem2man from ../elements/ip6/lookupip6route.hh:8 on 2022/11/25.

Clone this wiki locally