FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
nat44_ed_classify.c File Reference

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

+ Include dependency graph for nat44_ed_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_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_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

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_ed_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 27 of file nat44_ed_classify.c.

Enumeration Type Documentation

◆ nat44_classify_error_t

Enumerator
NAT44_CLASSIFY_N_ERROR 

Definition at line 32 of file nat44_ed_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 40 of file nat44_ed_classify.c.

Function Documentation

◆ format_nat44_classify_trace()

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

Definition at line 55 of file nat44_ed_classify.c.

◆ 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 326 of file nat44_ed_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 177 of file nat44_ed_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 341 of file nat44_ed_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 74 of file nat44_ed_classify.c.

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

Variable Documentation

◆ 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,
}

(constructor) VLIB_REGISTER_NODE (nat44_ed_classify_node)

Definition at line 333 of file nat44_ed_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,
}

(constructor) VLIB_REGISTER_NODE (nat44_handoff_classify_node)

Definition at line 348 of file nat44_ed_classify.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_nat44_classify_trace
static u8 * format_nat44_classify_trace(u8 *s, va_list *args)
Definition: nat44_ed_classify.c:55
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123