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) |
|
u8* format_udp_encap |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
static u8* format_udp_encap_dpo |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_udp_encap_i |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static void udp_encap_dpo_lock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
static void udp_encap_dpo_unlock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
Function definition to backwalk a FIB node.
Definition at line 290 of file udp_encap.c.
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.
Function definition to get a FIB node from its index.
Definition at line 301 of file udp_encap.c.
void udp_encap_get_stats |
( |
index_t |
uei, |
|
|
u64 * |
packets, |
|
|
u64 * |
bytes |
|
) |
| |
void udp_encap_unlock |
( |
index_t |
uei | ) |
|
Walk each of the encap objects.
Definition at line 511 of file udp_encap.c.
const char* const udp4_encap_bier_nodes[] |
|
static |
const char* const udp4_encap_ip4_nodes[] |
|
static |
const char* const udp4_encap_ip6_nodes[] |
|
static |
const char* const udp4_encap_mpls_nodes[] |
|
static |
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.
const char* const udp6_encap_bier_nodes[] |
|
static |
const char* const udp6_encap_ip4_nodes[] |
|
static |
const char* const udp6_encap_ip6_nodes[] |
|
static |
const char* const udp6_encap_mpls_nodes[] |
|
static |
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.
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.
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.
Registered DPO types for the IP header encapsulated, v4 or v6.
Definition at line 24 of file udp_encap.c.
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.
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.
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.