FD.io VPP  v21.01.1
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.

Data Structures

struct  cnat_translation_trace_t_
 

Typedefs

typedef struct cnat_translation_trace_t_ cnat_translation_trace_t
 
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 u8format_cnat_translation_trace (u8 *s, va_list *args)
 
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 rv, 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

◆ cnat_translation_trace_t

Enumeration Type Documentation

◆ cnat_translation_next_t_

Enumerator
CNAT_TRANSLATION_NEXT_DROP 
CNAT_TRANSLATION_NEXT_LOOKUP 
CNAT_TRANSLATION_N_NEXT 

Definition at line 37 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 250 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 261 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  rv,
cnat_session_t session 
)
static

Definition at line 69 of file cnat_node_vip.c.

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

◆ format_cnat_translation_trace()

static u8* format_cnat_translation_trace ( u8 s,
va_list *  args 
)
static

Definition at line 48 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),
.n_errors = 0,
.n_next_nodes = CNAT_TRANSLATION_N_NEXT,
.next_nodes =
{
[CNAT_TRANSLATION_NEXT_LOOKUP] = "ip4-lookup",
}
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_cnat_translation_trace(u8 *s, va_list *args)
Definition: cnat_node_vip.c:48

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip4_node)

Definition at line 44 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),
.n_errors = 0,
.n_next_nodes = CNAT_TRANSLATION_N_NEXT,
.next_nodes =
{
[CNAT_TRANSLATION_NEXT_LOOKUP] = "ip6-lookup",
}
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_cnat_translation_trace(u8 *s, va_list *args)
Definition: cnat_node_vip.c:48

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip6_node)

Definition at line 45 of file cnat_node_vip.c.