FD.io VPP  v21.01.1
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)
 
VLIB_NODE_FN() nat66_out2in_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

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

Detailed Description

NAT66 outside to inside network translation.

Definition in file nat66_out2in.c.

Macro Definition Documentation

◆ foreach_nat66_out2in_error

#define foreach_nat66_out2in_error
Value:
_(NO_TRANSLATION, "no translation") \
_(UNKNOWN, "unknown")

Definition at line 44 of file nat66_out2in.c.

Enumeration Type Documentation

◆ nat66_out2in_error_t

Enumerator
NAT66_OUT2IN_N_ERROR 

Definition at line 48 of file nat66_out2in.c.

◆ nat66_out2in_next_t

Enumerator
NAT66_OUT2IN_NEXT_IP6_LOOKUP 
NAT66_OUT2IN_NEXT_DROP 
NAT66_OUT2IN_N_NEXT 

Definition at line 62 of file nat66_out2in.c.

Function Documentation

◆ format_nat66_out2in_trace()

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

Definition at line 31 of file nat66_out2in.c.

◆ nat66_out2in_node()

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

Definition at line 69 of file nat66_out2in.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nat66_out2in_error_strings

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

Definition at line 56 of file nat66_out2in.c.

◆ nat66_out2in_node

vlib_node_registration_t nat66_out2in_node
Initial value:
= {
.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
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * nat66_out2in_error_strings[]
Definition: nat66_out2in.c:56
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (nat66_out2in_node)

Definition at line 197 of file nat66_out2in.c.