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

Classify for one armed NAT44 (in+out interface) More...

+ Include dependency graph for nat44_classify.c:

Go to the source code of this file.

Data Structures

struct  nat44_classify_trace_t
 

Macros

#define foreach_nat44_classify_error
 

Enumerations

enum  nat44_classify_error_t { NAT44_CLASSIFY_N_ERROR }
 
enum  nat44_classify_next_t { NAT44_CLASSIFY_NEXT_IN2OUT, NAT44_CLASSIFY_NEXT_OUT2IN, NAT44_CLASSIFY_NEXT_DROP, NAT44_CLASSIFY_N_NEXT }
 

Functions

static u8format_nat44_classify_trace (u8 *s, va_list *args)
 
static uword nat44_classify_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword nat44_handoff_classify_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword nat44_ed_classify_node_fn_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() nat44_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() nat44_ed_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() nat44_handoff_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * nat44_classify_error_strings []
 
vlib_node_registration_t nat44_classify_node
 (constructor) VLIB_REGISTER_NODE (nat44_classify_node) More...
 
vlib_node_registration_t nat44_ed_classify_node
 (constructor) VLIB_REGISTER_NODE (nat44_ed_classify_node) More...
 
vlib_node_registration_t nat44_handoff_classify_node
 (constructor) VLIB_REGISTER_NODE (nat44_handoff_classify_node) More...
 

Detailed Description

Classify for one armed NAT44 (in+out interface)

Definition in file nat44_classify.c.

Macro Definition Documentation

◆ foreach_nat44_classify_error

#define foreach_nat44_classify_error
Value:
_(NEXT_IN2OUT, "next in2out") \
_(NEXT_OUT2IN, "next out2in") \
_(FRAG_CACHED, "fragment cached")

Definition at line 26 of file nat44_classify.c.

Enumeration Type Documentation

◆ nat44_classify_error_t

Enumerator
NAT44_CLASSIFY_N_ERROR 

Definition at line 31 of file nat44_classify.c.

◆ nat44_classify_next_t

Enumerator
NAT44_CLASSIFY_NEXT_IN2OUT 
NAT44_CLASSIFY_NEXT_OUT2IN 
NAT44_CLASSIFY_NEXT_DROP 
NAT44_CLASSIFY_N_NEXT 

Definition at line 45 of file nat44_classify.c.

Function Documentation

◆ format_nat44_classify_trace()

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

Definition at line 60 of file nat44_classify.c.

◆ nat44_classify_node()

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

Definition at line 420 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ nat44_classify_node_fn_inline()

static uword nat44_classify_node_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 79 of file nat44_classify.c.

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

◆ nat44_ed_classify_node()

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

Definition at line 444 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ nat44_ed_classify_node_fn_inline()

static uword nat44_ed_classify_node_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 289 of file nat44_classify.c.

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

◆ nat44_handoff_classify_node()

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

Definition at line 461 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ nat44_handoff_classify_node_fn_inline()

static uword nat44_handoff_classify_node_fn_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
inlinestatic

Definition at line 184 of file nat44_classify.c.

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

Variable Documentation

◆ nat44_classify_error_strings

char* nat44_classify_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat44_classify_error

Definition at line 39 of file nat44_classify.c.

◆ nat44_classify_node

vlib_node_registration_t nat44_classify_node
Initial value:
= {
.name = "nat44-classify",
.vector_size = sizeof (u32),
.format_trace = format_nat44_classify_trace,
.error_strings = nat44_classify_error_strings,
.n_next_nodes = NAT44_CLASSIFY_N_NEXT,
.next_nodes = {
[NAT44_CLASSIFY_NEXT_IN2OUT] = "nat44-in2out",
[NAT44_CLASSIFY_NEXT_OUT2IN] = "nat44-out2in",
[NAT44_CLASSIFY_NEXT_DROP] = "error-drop",
},
}
static u8 * format_nat44_classify_trace(u8 *s, va_list *args)
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 char * nat44_classify_error_strings[]

(constructor) VLIB_REGISTER_NODE (nat44_classify_node)

Definition at line 428 of file nat44_classify.c.

◆ nat44_ed_classify_node

vlib_node_registration_t nat44_ed_classify_node
Initial value:
= {
.name = "nat44-ed-classify",
.vector_size = sizeof (u32),
.sibling_of = "nat-default",
.format_trace = format_nat44_classify_trace,
}
static u8 * format_nat44_classify_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (nat44_ed_classify_node)

Definition at line 452 of file nat44_classify.c.

◆ nat44_handoff_classify_node

vlib_node_registration_t nat44_handoff_classify_node
Initial value:
= {
.name = "nat44-handoff-classify",
.vector_size = sizeof (u32),
.sibling_of = "nat-default",
.format_trace = format_nat44_classify_trace,
}
static u8 * format_nat44_classify_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123

(constructor) VLIB_REGISTER_NODE (nat44_handoff_classify_node)

Definition at line 469 of file nat44_classify.c.