FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
nat66_out2in.c File Reference

NAT66 outside to inside network translation. More...

+ Include dependency graph for nat66_out2in.c:

Go to the source code of this file.

Data Structures

struct  nat66_out2in_trace_t
 

Macros

#define foreach_nat66_out2in_error
 

Enumerations

enum  nat66_out2in_error_t { NAT66_OUT2IN_N_ERROR }
 
enum  nat66_out2in_next_t { NAT66_OUT2IN_NEXT_IP6_LOOKUP, NAT66_OUT2IN_NEXT_DROP, NAT66_OUT2IN_N_NEXT }
 

Functions

static u8format_nat66_out2in_trace (u8 *s, va_list *args)
 
static uword nat66_out2in_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat66_out2in_node, nat66_out2in_node_fn)
 

Variables

vlib_node_registration_t nat66_out2in_node
 (constructor) VLIB_REGISTER_NODE (nat66_out2in_node) More...
 
static char * nat66_out2in_error_strings []
 

Detailed Description

NAT66 outside to inside network translation.

Definition in file nat66_out2in.c.

Macro Definition Documentation

#define foreach_nat66_out2in_error
Value:
_(OUT2IN_PACKETS, "good out2in packets processed") \
_(NO_TRANSLATION, "no translation") \
_(UNKNOWN, "unknown")

Definition at line 46 of file nat66_out2in.c.

Enumeration Type Documentation

Enumerator
NAT66_OUT2IN_N_ERROR 

Definition at line 51 of file nat66_out2in.c.

Enumerator
NAT66_OUT2IN_NEXT_IP6_LOOKUP 
NAT66_OUT2IN_NEXT_DROP 
NAT66_OUT2IN_N_NEXT 

Definition at line 65 of file nat66_out2in.c.

Function Documentation

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

Definition at line 31 of file nat66_out2in.c.

+ Here is the call graph for this function:

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

Definition at line 73 of file nat66_out2in.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( nat66_out2in_node  ,
nat66_out2in_node_fn   
)

Variable Documentation

char* nat66_out2in_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat66_out2in_error
Definition: nat66_out2in.c:46

Definition at line 59 of file nat66_out2in.c.

vlib_node_registration_t nat66_out2in_node
Initial value:
= {
.function = nat66_out2in_node_fn,
.name = "nat66-out2in",
.vector_size = sizeof (u32),
.format_trace = format_nat66_out2in_trace,
.error_strings = nat66_out2in_error_strings,
.n_next_nodes = NAT66_OUT2IN_N_NEXT,
.next_nodes = {
[NAT66_OUT2IN_NEXT_DROP] = "error-drop",
[NAT66_OUT2IN_NEXT_IP6_LOOKUP] = "ip6-lookup",
},
}
static u8 * format_nat66_out2in_trace(u8 *s, va_list *args)
Definition: nat66_out2in.c:31
unsigned int u32
Definition: types.h:88
static uword nat66_out2in_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: nat66_out2in.c:73
static char * nat66_out2in_error_strings[]
Definition: nat66_out2in.c:59
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (nat66_out2in_node)

Definition at line 44 of file nat66_out2in.c.