FD.io VPP  v18.10-34-gcce845e
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)
 
static uword nat44_classify_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat44_classify_node, nat44_classify_node_fn)
 
static uword nat44_ed_classify_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat44_ed_classify_node, nat44_ed_classify_node_fn)
 
static uword nat44_det_classify_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat44_det_classify_node, nat44_det_classify_node_fn)
 
static uword nat44_handoff_classify_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat44_handoff_classify_node, nat44_handoff_classify_node_fn)
 

Variables

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...
 
static char * nat44_classify_error_strings []
 

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")

Definition at line 32 of file nat44_classify.c.

Enumeration Type Documentation

Enumerator
NAT44_CLASSIFY_N_ERROR 

Definition at line 36 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 50 of file nat44_classify.c.

Function Documentation

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

Definition at line 65 of file nat44_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword nat44_classify_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 406 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 84 of file nat44_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword nat44_det_classify_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 458 of file nat44_classify.c.

+ Here is the call graph for this function:

static uword nat44_ed_classify_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 432 of file nat44_classify.c.

+ Here is the call graph for this function:

static uword nat44_handoff_classify_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 484 of file nat44_classify.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_classify_node  ,
nat44_classify_node_fn   
)

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_ed_classify_node  ,
nat44_ed_classify_node_fn   
)
VLIB_NODE_FUNCTION_MULTIARCH ( nat44_det_classify_node  ,
nat44_det_classify_node_fn   
)
VLIB_NODE_FUNCTION_MULTIARCH ( nat44_handoff_classify_node  ,
nat44_handoff_classify_node_fn   
)

Variable Documentation

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

Definition at line 44 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:61
static char * nat44_classify_error_strings[]
static uword nat44_classify_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (nat44_classify_node)

Definition at line 27 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
static uword nat44_det_classify_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (nat44_det_classify_node)

Definition at line 29 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
static uword nat44_ed_classify_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)

(constructor) VLIB_REGISTER_NODE (nat44_ed_classify_node)

Definition at line 28 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)
static uword nat44_handoff_classify_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (nat44_handoff_classify_node)

Definition at line 30 of file nat44_classify.c.