FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
nat66_in2out.c File Reference

NAT66 inside to outside network translation. More...

+ Include dependency graph for nat66_in2out.c:

Go to the source code of this file.

Data Structures

struct  nat66_in2out_trace_t
 

Macros

#define foreach_nat66_in2out_error
 

Enumerations

enum  nat66_in2out_error_t { NAT66_IN2OUT_N_ERROR }
 
enum  nat66_in2out_next_t { NAT66_IN2OUT_NEXT_IP6_LOOKUP, NAT66_IN2OUT_NEXT_DROP, NAT66_IN2OUT_N_NEXT }
 

Functions

static u8format_nat66_in2out_trace (u8 *s, va_list *args)
 
static u8 nat66_not_translate (u32 rx_fib_index, ip6_address_t ip6_addr)
 
static uword nat66_in2out_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat66_in2out_node, nat66_in2out_node_fn)
 

Variables

vlib_node_registration_t nat66_in2out_node
 (constructor) VLIB_REGISTER_NODE (nat66_in2out_node) More...
 
static char * nat66_in2out_error_strings []
 

Detailed Description

NAT66 inside to outside network translation.

Definition in file nat66_in2out.c.

Macro Definition Documentation

#define foreach_nat66_in2out_error
Value:
_(IN2OUT_PACKETS, "good in2out packets processed") \
_(NO_TRANSLATION, "no translation") \
_(UNKNOWN, "unknown")

Definition at line 46 of file nat66_in2out.c.

Enumeration Type Documentation

Enumerator
NAT66_IN2OUT_N_ERROR 

Definition at line 51 of file nat66_in2out.c.

Enumerator
NAT66_IN2OUT_NEXT_IP6_LOOKUP 
NAT66_IN2OUT_NEXT_DROP 
NAT66_IN2OUT_N_NEXT 

Definition at line 65 of file nat66_in2out.c.

Function Documentation

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

Definition at line 31 of file nat66_in2out.c.

+ Here is the call graph for this function:

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

Definition at line 113 of file nat66_in2out.c.

+ Here is the call graph for this function:

static u8 nat66_not_translate ( u32  rx_fib_index,
ip6_address_t  ip6_addr 
)
inlinestatic

Definition at line 73 of file nat66_in2out.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( nat66_in2out_node  ,
nat66_in2out_node_fn   
)

Variable Documentation

char* nat66_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat66_in2out_error
Definition: nat66_in2out.c:46

Definition at line 59 of file nat66_in2out.c.

vlib_node_registration_t nat66_in2out_node
Initial value:
= {
.function = nat66_in2out_node_fn,
.name = "nat66-in2out",
.vector_size = sizeof (u32),
.format_trace = format_nat66_in2out_trace,
.error_strings = nat66_in2out_error_strings,
.n_next_nodes = NAT66_IN2OUT_N_NEXT,
.next_nodes = {
[NAT66_IN2OUT_NEXT_DROP] = "error-drop",
[NAT66_IN2OUT_NEXT_IP6_LOOKUP] = "ip6-lookup",
},
}
unsigned int u32
Definition: types.h:88
static char * nat66_in2out_error_strings[]
Definition: nat66_in2out.c:59
#define ARRAY_LEN(x)
Definition: clib.h:61
static uword nat66_in2out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: nat66_in2out.c:113
static u8 * format_nat66_in2out_trace(u8 *s, va_list *args)
Definition: nat66_in2out.c:31

(constructor) VLIB_REGISTER_NODE (nat66_in2out_node)

Definition at line 44 of file nat66_in2out.c.