FD.io VPP  v20.01-48-g3e0dafb74
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:
_(OUT2IN_PACKETS, "good out2in packets processed") \
_(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 49 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 63 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.

+ Here is the call graph for this function:

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

(constructor) VLIB_REGISTER_NODE (nat66_out2in_node)

Definition at line 198 of file nat66_out2in.c.