From 810086d8fd08445919ae03bf36161037e53a712a Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Sun, 5 Nov 2017 16:26:46 -0800 Subject: UDP Encapsulation. A UDP-encap object that particiapates in the FIB graph and contributes DPO to teh output chain. It thereofre resembles a tunnel but without the interface. FIB paths (and henace routes) can then be created to egress through the UDP-encap. Said routes can have MPLS labels, hence this also allows MPLSoUPD. Encap is uni-directional. For decap, one still registers with the UDP port dispatcher. Change-Id: I23bd345523b20789a1de1b02022ea1148ca50797 Signed-off-by: Neale Ranns --- src/vnet/fib/fib_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vnet/fib/fib_types.h') diff --git a/src/vnet/fib/fib_types.h b/src/vnet/fib/fib_types.h index 7eadbb9bb70..ec7f1b374dd 100644 --- a/src/vnet/fib/fib_types.h +++ b/src/vnet/fib/fib_types.h @@ -307,6 +307,10 @@ typedef enum fib_route_path_flags_t_ * A deag path using the packet's source not destination address. */ FIB_ROUTE_PATH_SOURCE_LOOKUP = (1 << 8), + /** + * A path via a UDP encap object. + */ + FIB_ROUTE_PATH_UDP_ENCAP = (1 << 9), } fib_route_path_flags_t; /** @@ -375,6 +379,10 @@ typedef struct fib_route_path_t_ { * The RPF-ID */ fib_rpf_id_t frp_rpf_id; + /** + * UDP encap ID + */ + u32 frp_udp_encap_id; }; /** * The FIB index to lookup the nexthop -- cgit 1.2.3-korg