FD.io VPP
v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
|
Common utility functions for IPv4, IPv6 and L2 LISP-GPE tunnels. More...
Go to the source code of this file.
Functions | |
u8 * | lisp_gpe_tunnel_build_rewrite (const lisp_gpe_tunnel_t *lgt, const lisp_gpe_adjacency_t *ladj, lisp_gpe_next_protocol_e payload_proto) |
Compute IP-UDP-GPE sub-tunnel encap/rewrite header. More... | |
static lisp_gpe_tunnel_t * | lisp_gpe_tunnel_db_find (const lisp_gpe_tunnel_key_t *key) |
lisp_gpe_tunnel_t * | lisp_gpe_tunnel_get_i (index_t lgti) |
index_t | lisp_gpe_tunnel_find_or_create_and_lock (const locator_pair_t *pair, u32 rloc_fib_index) |
void | lisp_gpe_tunnel_unlock (index_t lgti) |
const lisp_gpe_tunnel_t * | lisp_gpe_tunnel_get (index_t lgti) |
u8 * | format_lisp_gpe_tunnel (u8 *s, va_list *args) |
Format LISP-GPE tunnel. More... | |
static clib_error_t * | show_lisp_gpe_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
CLI command to show LISP-GPE tunnels. More... | |
static clib_error_t * | lisp_gpe_tunnel_module_init (vlib_main_t *vm) |
Variables | |
static lisp_gpe_tunnel_t * | lisp_gpe_tunnel_pool |
Pool of all LISP tunnels. More... | |
static uword * | lisp_gpe_tunnel_db |
a DB of all tunnels More... | |
static vlib_cli_command_t | show_lisp_gpe_tunnel_command |
(constructor) VLIB_CLI_COMMAND (show_lisp_gpe_tunnel_command) More... | |
Common utility functions for IPv4, IPv6 and L2 LISP-GPE tunnels.
Definition in file lisp_gpe_tunnel.c.
Format LISP-GPE tunnel.
Definition at line 217 of file lisp_gpe_tunnel.c.
u8* lisp_gpe_tunnel_build_rewrite | ( | const lisp_gpe_tunnel_t * | lgt, |
const lisp_gpe_adjacency_t * | ladj, | ||
lisp_gpe_next_protocol_e | payload_proto | ||
) |
Compute IP-UDP-GPE sub-tunnel encap/rewrite header.
[in] | t | Parent of the sub-tunnel. |
[in] | st | Sub-tunnel. |
[in] | lp | Local and remote locators used in the encap header. |
Definition at line 46 of file lisp_gpe_tunnel.c.
|
static |
index_t lisp_gpe_tunnel_find_or_create_and_lock | ( | const locator_pair_t * | pair, |
u32 | rloc_fib_index | ||
) |
Definition at line 148 of file lisp_gpe_tunnel.c.
const lisp_gpe_tunnel_t* lisp_gpe_tunnel_get | ( | index_t | lgti | ) |
Definition at line 210 of file lisp_gpe_tunnel.c.
lisp_gpe_tunnel_t* lisp_gpe_tunnel_get_i | ( | index_t | lgti | ) |
|
static |
Definition at line 276 of file lisp_gpe_tunnel.c.
void lisp_gpe_tunnel_unlock | ( | index_t | lgti | ) |
Definition at line 194 of file lisp_gpe_tunnel.c.
|
static |
CLI command to show LISP-GPE tunnels.
Definition at line 239 of file lisp_gpe_tunnel.c.
|
static |
a DB of all tunnels
Definition at line 34 of file lisp_gpe_tunnel.c.
|
static |
Pool of all LISP tunnels.
Definition at line 29 of file lisp_gpe_tunnel.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_lisp_gpe_tunnel_command)
Definition at line 268 of file lisp_gpe_tunnel.c.