FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ foreach_nat44_classify_error

#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 32 of file nat44_classify.c.

Enumeration Type Documentation

◆ nat44_classify_error_t

Enumerator
NAT44_CLASSIFY_N_ERROR 

Definition at line 39 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 53 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 68 of file nat44_classify.c.

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

◆ nat44_classify_node_fn()

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

Definition at line 422 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,
int  is_ed 
)
inlinestatic

Definition at line 87 of file nat44_classify.c.

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

◆ nat44_det_classify_node_fn()

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

Definition at line 474 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ nat44_ed_classify_node_fn()

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

Definition at line 448 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ nat44_handoff_classify_node_fn()

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

Definition at line 500 of file nat44_classify.c.

+ Here is the call graph for this function:

◆ VLIB_NODE_FUNCTION_MULTIARCH() [1/4]

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_classify_node  ,
nat44_classify_node_fn   
)
+ Here is the caller graph for this function:

◆ VLIB_NODE_FUNCTION_MULTIARCH() [2/4]

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_ed_classify_node  ,
nat44_ed_classify_node_fn   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [3/4]

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_det_classify_node  ,
nat44_det_classify_node_fn   
)

◆ VLIB_NODE_FUNCTION_MULTIARCH() [4/4]

VLIB_NODE_FUNCTION_MULTIARCH ( nat44_handoff_classify_node  ,
nat44_handoff_classify_node_fn   
)

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 47 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
#define ARRAY_LEN(x)
Definition: clib.h:62
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.

◆ nat44_det_classify_node

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.

◆ nat44_ed_classify_node

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.

◆ nat44_handoff_classify_node

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.