A representation of a GRE tunnel.
More...
A representation of a GRE tunnel.
Definition at line 176 of file gre.h.
◆ CLIB_CACHE_LINE_ALIGN_MARK()
gre_tunnel_t::CLIB_CACHE_LINE_ALIGN_MARK |
( |
cacheline0 |
| ) |
|
Required for pool_get_aligned.
◆ dev_instance
u32 gre_tunnel_t::dev_instance |
◆ fib_entry_index
The FIB entry sourced by the tunnel for its destination prefix.
Definition at line 213 of file gre.h.
◆ gre_sn
GRE header sequence number (SN) used for ERSPAN type 2 header, must be bumped automically to be thread safe.
As multiple GRE tunnels are created for the same fib-idx/DIP/SIP with different ERSPAN session number, they all share the same SN which is kept per FIB/DIP/SIP, as specified by RFC2890.
Definition at line 239 of file gre.h.
◆ hw_if_index
u32 gre_tunnel_t::hw_if_index |
◆ key
The hash table's key stored in separate memory since the tunnel_t memory can realloc.
Definition at line 192 of file gre.h.
◆ l2_adj_index
an L2 tunnel always rquires an L2 midchain.
cache here for DP.
Definition at line 226 of file gre.h.
◆ node
Linkage into the FIB object graph.
Definition at line 186 of file gre.h.
◆ outer_fib_index
u32 gre_tunnel_t::outer_fib_index |
The FIB in which the src.dst address are present.
Definition at line 205 of file gre.h.
◆ session_id
u16 gre_tunnel_t::session_id |
ERSPAN type 2 session ID, least significant 10 bits of u16.
Definition at line 231 of file gre.h.
◆ sibling_index
u32 gre_tunnel_t::sibling_index |
The tunnel is a child of the FIB entry for its desintion.
This is so it receives updates when the forwarding information for that entry changes. The tunnels sibling index on the FIB entry's dependency list.
Definition at line 221 of file gre.h.
◆ sw_if_index
u32 gre_tunnel_t::sw_if_index |
◆ tunnel_dst
The tunnel's destination/remote address.
Definition at line 201 of file gre.h.
◆ tunnel_src
ip46_address_t gre_tunnel_t::tunnel_src |
The tunnel's source/local address.
Definition at line 197 of file gre.h.
◆ type
◆ user_instance
u32 gre_tunnel_t::user_instance |
The documentation for this struct was generated from the following file: