FD.io VPP  v20.09-64-g4f7b92f0a
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_inline (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 32 of file cnat_node_vip.c.

Function Documentation

◆ cnat_vip_inline()

static uword cnat_vip_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b,
cnat_node_ctx_t ctx,
int  rv,
cnat_session_t session 
)
inlinestatic

Definition at line 67 of file cnat_node_vip.c.

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

◆ 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 256 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 267 of file cnat_node_vip.c.

+ Here is the call graph for this function:

◆ format_cnat_translation_trace()

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

Definition at line 43 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:43

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip4_node)

Definition at line 39 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:43

(constructor) VLIB_REGISTER_NODE (cnat_vip_ip6_node)

Definition at line 40 of file cnat_node_vip.c.