FD.io VPP  v21.01.1
Vector Packet Processing
nat44_handoff.c File Reference

NAT44 worker handoff. More...

+ Include dependency graph for nat44_handoff.c:

Go to the source code of this file.

Data Structures

struct  nat44_handoff_trace_t
 

Functions

static u8format_nat44_handoff_trace (u8 *s, va_list *args)
 
static uword nat44_worker_handoff_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_output, u8 is_in2out)
 
VLIB_NODE_FN() snat_in2out_worker_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() snat_in2out_output_worker_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() snat_out2in_worker_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * nat44_handoff_error_strings []
 
vlib_node_registration_t snat_in2out_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_in2out_worker_handoff_node) More...
 
vlib_node_registration_t snat_in2out_output_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_in2out_output_worker_handoff_node) More...
 
vlib_node_registration_t snat_out2in_worker_handoff_node
 (constructor) VLIB_REGISTER_NODE (snat_out2in_worker_handoff_node) More...
 

Detailed Description

NAT44 worker handoff.

Definition in file nat44_handoff.c.

Function Documentation

◆ format_nat44_handoff_trace()

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

Definition at line 43 of file nat44_handoff.c.

◆ nat44_worker_handoff_fn_inline()

static uword nat44_worker_handoff_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u8  is_output,
u8  is_in2out 
)
inlinestatic

Definition at line 60 of file nat44_handoff.c.

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

◆ snat_in2out_output_worker_handoff_node()

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

Definition at line 285 of file nat44_handoff.c.

+ Here is the call graph for this function:

◆ snat_in2out_worker_handoff_node()

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

Definition at line 266 of file nat44_handoff.c.

+ Here is the call graph for this function:

◆ snat_out2in_worker_handoff_node()

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

Definition at line 305 of file nat44_handoff.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nat44_handoff_error_strings

char* nat44_handoff_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat44_handoff_error
Definition: nat.h:166

Definition at line 36 of file nat44_handoff.c.

◆ snat_in2out_output_worker_handoff_node

vlib_node_registration_t snat_in2out_output_worker_handoff_node
Initial value:
= {
.name = "nat44-in2out-output-worker-handoff",
.vector_size = sizeof (u32),
.sibling_of = "nat-default",
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:36
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:43

(constructor) VLIB_REGISTER_NODE (snat_in2out_output_worker_handoff_node)

Definition at line 294 of file nat44_handoff.c.

◆ snat_in2out_worker_handoff_node

vlib_node_registration_t snat_in2out_worker_handoff_node
Initial value:
= {
.name = "nat44-in2out-worker-handoff",
.vector_size = sizeof (u32),
.sibling_of = "nat-default",
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:36
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:43

(constructor) VLIB_REGISTER_NODE (snat_in2out_worker_handoff_node)

Definition at line 274 of file nat44_handoff.c.

◆ snat_out2in_worker_handoff_node

vlib_node_registration_t snat_out2in_worker_handoff_node
Initial value:
= {
.name = "nat44-out2in-worker-handoff",
.vector_size = sizeof (u32),
.sibling_of = "nat-default",
.format_trace = format_nat44_handoff_trace,
.error_strings = nat44_handoff_error_strings,
}
static char * nat44_handoff_error_strings[]
Definition: nat44_handoff.c:36
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_nat44_handoff_trace(u8 *s, va_list *args)
Definition: nat44_handoff.c:43

(constructor) VLIB_REGISTER_NODE (snat_out2in_worker_handoff_node)

Definition at line 313 of file nat44_handoff.c.