FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
cnat_node_vip.c File Reference
+ Include dependency graph for cnat_node_vip.c:

Go to the source code of this file.

Typedefs

typedef enum cnat_translation_next_t_ cnat_translation_next_t
 

Enumerations

enum  cnat_translation_next_t_ { CNAT_TRANSLATION_NEXT_DROP, CNAT_TRANSLATION_NEXT_LOOKUP, CNAT_TRANSLATION_N_NEXT }
 

Functions

static uword cnat_vip_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b, cnat_node_ctx_t *ctx, int session_not_found, cnat_session_t *session)
 
VLIB_NODE_FN() cnat_vip_ip4_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() cnat_vip_ip6_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t cnat_vip_ip4_node
 (constructor) VLIB_REGISTER_NODE (cnat_vip_ip4_node) More...
 
vlib_node_registration_t cnat_vip_ip6_node
 (constructor) VLIB_REGISTER_NODE (cnat_vip_ip6_node) More...
 

Typedef Documentation

◆ cnat_translation_next_t

Enumeration Type Documentation

◆ cnat_translation_next_t_

Enumerator
CNAT_TRANSLATION_NEXT_DROP 
CNAT_TRANSLATION_NEXT_LOOKUP 
CNAT_TRANSLATION_N_NEXT 

Definition at line 21 of file cnat_node_vip.c.

Function Documentation

◆ cnat_vip_ip4_node()

VLIB_NODE_FN() cnat_vip_ip4_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 199 of file cnat_node_vip.c.

+ Here is the call graph for this function:

◆ cnat_vip_ip6_node()

VLIB_NODE_FN() cnat_vip_ip6_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 210 of file cnat_node_vip.c.

+ Here is the call graph for this function:

◆ cnat_vip_node_fn()

static uword cnat_vip_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b,
cnat_node_ctx_t ctx,
int  session_not_found,
cnat_session_t session 
)
static

Definition at line 33 of file cnat_node_vip.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cnat_vip_ip4_node

vlib_node_registration_t cnat_vip_ip4_node
Initial value:
=
{
.name = "ip4-cnat-tx",
.vector_size = sizeof (u32),
.format_trace = format_cnat_trace,
.n_errors = 0,
.n_next_nodes = CNAT_TRANSLATION_N_NEXT,
.next_nodes =
{
[CNAT_TRANSLATION_NEXT_LOOKUP] = "ip4-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip4_node)

Definition at line 28 of file cnat_node_vip.c.

◆ cnat_vip_ip6_node

vlib_node_registration_t cnat_vip_ip6_node
Initial value:
=
{
.name = "ip6-cnat-tx",
.vector_size = sizeof (u32),
.format_trace = format_cnat_trace,
.n_errors = 0,
.n_next_nodes = CNAT_TRANSLATION_N_NEXT,
.next_nodes =
{
[CNAT_TRANSLATION_NEXT_LOOKUP] = "ip6-lookup",
},
}

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip6_node)

Definition at line 29 of file cnat_node_vip.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
CNAT_TRANSLATION_N_NEXT
@ CNAT_TRANSLATION_N_NEXT
Definition: cnat_node_vip.c:25
format_cnat_trace
static u8 * format_cnat_trace(u8 *s, va_list *args)
Definition: cnat_node.h:75
u32
unsigned int u32
Definition: types.h:88
CNAT_TRANSLATION_NEXT_DROP
@ CNAT_TRANSLATION_NEXT_DROP
Definition: cnat_node_vip.c:23
CNAT_TRANSLATION_NEXT_LOOKUP
@ CNAT_TRANSLATION_NEXT_LOOKUP
Definition: cnat_node_vip.c:24
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123