FD.io VPP  v19.04.2-12-g66b1689
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, int is_ed)
 
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_det_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_det_classify_node
 (constructor) VLIB_REGISTER_NODE (nat44_det_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

#define foreach_nat44_classify_error
Value:
_(MAX_REASS, "Maximum reassemblies exceeded") \
_(MAX_FRAG, "Maximum fragments per reassembly exceeded") \
_(NEXT_IN2OUT, "next in2out") \
_(NEXT_OUT2IN, "next out2in") \
_(FRAG_CACHED, "fragment cached")

Definition at line 27 of file nat44_classify.c.

Enumeration Type Documentation

Enumerator
NAT44_CLASSIFY_N_ERROR 

Definition at line 34 of file nat44_classify.c.

Enumerator
NAT44_CLASSIFY_NEXT_IN2OUT 
NAT44_CLASSIFY_NEXT_OUT2IN 
NAT44_CLASSIFY_NEXT_DROP 
NAT44_CLASSIFY_N_NEXT 

Definition at line 48 of file nat44_classify.c.

Function Documentation

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

Definition at line 63 of file nat44_classify.c.

+ Here is the call graph for this function:

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

Definition at line 416 of file nat44_classify.c.

+ Here is the call graph for this function:

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

Definition at line 82 of file nat44_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 462 of file nat44_classify.c.

+ Here is the call graph for this function:

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

Definition at line 440 of file nat44_classify.c.

+ Here is the call graph for this function:

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

Definition at line 484 of file nat44_classify.c.

+ Here is the call graph for this function:

Variable Documentation

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

Definition at line 42 of file nat44_classify.c.

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
#define ARRAY_LEN(x)
Definition: clib.h:62
static char * nat44_classify_error_strings[]

(constructor) VLIB_REGISTER_NODE (nat44_classify_node)

Definition at line 424 of file nat44_classify.c.

vlib_node_registration_t nat44_det_classify_node
Initial value:
= {
.name = "nat44-det-classify",
.vector_size = sizeof (u32),
.format_trace = format_nat44_classify_trace,
.n_next_nodes = NAT44_CLASSIFY_N_NEXT,
.next_nodes = {
[NAT44_CLASSIFY_NEXT_IN2OUT] = "nat44-det-in2out",
[NAT44_CLASSIFY_NEXT_OUT2IN] = "nat44-det-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

(constructor) VLIB_REGISTER_NODE (nat44_det_classify_node)

Definition at line 470 of file nat44_classify.c.

vlib_node_registration_t nat44_ed_classify_node
Initial value:
= {
.name = "nat44-ed-classify",
.vector_size = sizeof (u32),
.format_trace = format_nat44_classify_trace,
.n_next_nodes = NAT44_CLASSIFY_N_NEXT,
.next_nodes = {
[NAT44_CLASSIFY_NEXT_IN2OUT] = "nat44-ed-in2out",
[NAT44_CLASSIFY_NEXT_OUT2IN] = "nat44-ed-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

(constructor) VLIB_REGISTER_NODE (nat44_ed_classify_node)

Definition at line 448 of file nat44_classify.c.

vlib_node_registration_t nat44_handoff_classify_node
Initial value:
= {
.name = "nat44-handoff-classify",
.vector_size = sizeof (u32),
.format_trace = format_nat44_classify_trace,
.n_next_nodes = NAT44_CLASSIFY_N_NEXT,
.next_nodes = {
[NAT44_CLASSIFY_NEXT_IN2OUT] = "nat44-in2out-worker-handoff",
[NAT44_CLASSIFY_NEXT_OUT2IN] = "nat44-out2in-worker-handoff",
[NAT44_CLASSIFY_NEXT_DROP] = "error-drop",
},
}
static u8 * format_nat44_classify_trace(u8 *s, va_list *args)
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (nat44_handoff_classify_node)

Definition at line 492 of file nat44_classify.c.