Go to the source code of this file.
|
static void | udp_encap_restack (udp_encap_t *ue) |
|
index_t | udp_encap_add_and_lock (fib_protocol_t proto, index_t fib_index, const ip46_address_t *src_ip, const ip46_address_t *dst_ip, u16 src_port, u16 dst_port, udp_encap_fixup_flags_t flags) |
|
void | udp_encap_contribute_forwarding (index_t uei, dpo_proto_t proto, dpo_id_t *dpo) |
|
void | udp_encap_lock (index_t uei) |
|
void | udp_encap_unlock (index_t uei) |
|
static void | udp_encap_dpo_lock (dpo_id_t *dpo) |
|
static void | udp_encap_dpo_unlock (dpo_id_t *dpo) |
|
static u8 * | format_udp_encap_i (u8 *s, va_list *args) |
|
void | udp_encap_get_stats (index_t uei, u64 *packets, u64 *bytes) |
|
static u8 * | format_udp_encap_dpo (u8 *s, va_list *args) |
|
u8 * | format_udp_encap (u8 *s, va_list *args) |
|
static udp_encap_t * | udp_encap_from_fib_node (fib_node_t *node) |
|
static fib_node_back_walk_rc_t | udp_encap_fib_back_walk (fib_node_t *node, fib_node_back_walk_ctx_t *ctx) |
| Function definition to backwalk a FIB node. More...
|
|
static fib_node_t * | udp_encap_fib_node_get (fib_node_index_t index) |
| Function definition to get a FIB node from its index. More...
|
|
static void | udp_encap_fib_last_lock_gone (fib_node_t *node) |
| Function definition to inform the FIB node that its last lock has gone. More...
|
|
clib_error_t * | udp_encap_init (vlib_main_t *vm) |
|
clib_error_t * | udp_encap_cli (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd) |
|
void | udp_encap_walk (udp_encap_walk_cb_t cb, void *ctx) |
| Walk each of the encap objects. More...
|
|
clib_error_t * | udp_encap_show (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
◆ format_udp_encap()
u8* format_udp_encap |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_udp_encap_dpo()
static u8* format_udp_encap_dpo |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_udp_encap_i()
static u8* format_udp_encap_i |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ udp_encap_add_and_lock()
◆ udp_encap_cli()
◆ udp_encap_contribute_forwarding()
◆ udp_encap_dpo_lock()
static void udp_encap_dpo_lock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
◆ udp_encap_dpo_unlock()
static void udp_encap_dpo_unlock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
◆ udp_encap_fib_back_walk()
Function definition to backwalk a FIB node.
Definition at line 290 of file udp_encap.c.
◆ udp_encap_fib_last_lock_gone()
static void udp_encap_fib_last_lock_gone |
( |
fib_node_t * |
node | ) |
|
|
static |
Function definition to inform the FIB node that its last lock has gone.
reset the stacked DPO to unlock it
Definition at line 314 of file udp_encap.c.
◆ udp_encap_fib_node_get()
Function definition to get a FIB node from its index.
Definition at line 301 of file udp_encap.c.
◆ udp_encap_from_fib_node()
◆ udp_encap_get_stats()
void udp_encap_get_stats |
( |
index_t |
uei, |
|
|
u64 * |
packets, |
|
|
u64 * |
bytes |
|
) |
| |
◆ udp_encap_init()
◆ udp_encap_lock()
◆ udp_encap_restack()
◆ udp_encap_show()
◆ udp_encap_unlock()
void udp_encap_unlock |
( |
index_t |
uei | ) |
|
◆ udp_encap_walk()
Walk each of the encap objects.
Definition at line 511 of file udp_encap.c.
◆ udp4_encap_bier_nodes
const char* const udp4_encap_bier_nodes[] |
|
static |
◆ udp4_encap_ip4_nodes
const char* const udp4_encap_ip4_nodes[] |
|
static |
◆ udp4_encap_ip6_nodes
const char* const udp4_encap_ip6_nodes[] |
|
static |
◆ udp4_encap_mpls_nodes
const char* const udp4_encap_mpls_nodes[] |
|
static |
◆ udp4_encap_nodes
Initial value:= {
}
static const char *const udp4_encap_bier_nodes[]
static const char *const udp4_encap_ip4_nodes[]
static const char *const udp4_encap_mpls_nodes[]
static const char *const udp4_encap_ip6_nodes[]
Definition at line 372 of file udp_encap.c.
◆ udp6_encap_bier_nodes
const char* const udp6_encap_bier_nodes[] |
|
static |
◆ udp6_encap_ip4_nodes
const char* const udp6_encap_ip4_nodes[] |
|
static |
◆ udp6_encap_ip6_nodes
const char* const udp6_encap_ip6_nodes[] |
|
static |
◆ udp6_encap_mpls_nodes
const char* const udp6_encap_mpls_nodes[] |
|
static |
◆ udp6_encap_nodes
Initial value:= {
}
static const char *const udp6_encap_mpls_nodes[]
static const char *const udp6_encap_ip6_nodes[]
static const char *const udp6_encap_bier_nodes[]
static const char *const udp6_encap_ip4_nodes[]
Definition at line 379 of file udp_encap.c.
◆ udp_encap_add_command
Initial value:= {
.path = "udp encap",
.short_help = "udp encap [add|del] <id ID> <src-ip> <dst-ip> [<src-port>] <dst-port> [src-port-is-entropy] [table-id <table>]",
.is_mp_safe = 1,
}
clib_error_t * udp_encap_cli(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (udp_encap_add_command)
Definition at line 560 of file udp_encap.c.
◆ udp_encap_counters
Initial value:= {
.name = "udp-encap",
.stat_segment_name = "/net/udp-encap",
}
Stats for each UDP encap object.
Definition at line 34 of file udp_encap.c.
◆ udp_encap_dpo_types
Registered DPO types for the IP header encapsulated, v4 or v6.
Definition at line 24 of file udp_encap.c.
◆ udp_encap_dpo_vft
Initial value:= {
}
static void udp_encap_dpo_lock(dpo_id_t *dpo)
static void udp_encap_dpo_unlock(dpo_id_t *dpo)
static u8 * format_udp_encap_dpo(u8 *s, va_list *args)
Definition at line 396 of file udp_encap.c.
◆ udp_encap_fib_vft
Initial value:= {
}
static fib_node_back_walk_rc_t udp_encap_fib_back_walk(fib_node_t *node, fib_node_back_walk_ctx_t *ctx)
Function definition to backwalk a FIB node.
static fib_node_t * udp_encap_fib_node_get(fib_node_index_t index)
Function definition to get a FIB node from its index.
static void udp_encap_fib_last_lock_gone(fib_node_t *node)
Function definition to inform the FIB node that its last lock has gone.
Definition at line 390 of file udp_encap.c.
◆ udp_encap_pool
◆ udp_encap_show_command
Initial value:= {
.path = "show udp encap",
.short_help = "show udp encap [ID]",
.is_mp_safe = 1,
}
clib_error_t * udp_encap_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (udp_encap_show_command)
Definition at line 566 of file udp_encap.c.