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

Variables

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

Detailed Description

NAT66 inside to outside network translation.

Definition in file nat66_in2out.c.

Macro Definition Documentation

◆ foreach_nat66_in2out_error

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

Definition at line 44 of file nat66_in2out.c.

Enumeration Type Documentation

◆ nat66_in2out_error_t

Enumerator
NAT66_IN2OUT_N_ERROR 

Definition at line 48 of file nat66_in2out.c.

◆ nat66_in2out_next_t

Enumerator
NAT66_IN2OUT_NEXT_IP6_LOOKUP 
NAT66_IN2OUT_NEXT_DROP 
NAT66_IN2OUT_N_NEXT 

Definition at line 62 of file nat66_in2out.c.

Function Documentation

◆ format_nat66_in2out_trace()

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

Definition at line 31 of file nat66_in2out.c.

◆ nat66_in2out_node()

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

Definition at line 109 of file nat66_in2out.c.

+ Here is the call graph for this function:

◆ nat66_not_translate()

static u8 nat66_not_translate ( u32  rx_fib_index,
ip6_address_t  ip6_addr 
)
inlinestatic

Definition at line 70 of file nat66_in2out.c.

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

Variable Documentation

◆ nat66_in2out_error_strings

char* nat66_in2out_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 56 of file nat66_in2out.c.

◆ nat66_in2out_node

vlib_node_registration_t nat66_in2out_node
Initial value:
= {
.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",
},
}

(constructor) VLIB_REGISTER_NODE (nat66_in2out_node)

Definition at line 239 of file nat66_in2out.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
NAT66_IN2OUT_N_NEXT
@ NAT66_IN2OUT_N_NEXT
Definition: nat66_in2out.c:66
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
nat66_in2out_error_strings
static char * nat66_in2out_error_strings[]
Definition: nat66_in2out.c:56
NAT66_IN2OUT_NEXT_DROP
@ NAT66_IN2OUT_NEXT_DROP
Definition: nat66_in2out.c:65
u32
unsigned int u32
Definition: types.h:88
foreach_nat66_in2out_error
#define foreach_nat66_in2out_error
Definition: nat66_in2out.c:44
NAT66_IN2OUT_NEXT_IP6_LOOKUP
@ NAT66_IN2OUT_NEXT_IP6_LOOKUP
Definition: nat66_in2out.c:64
format_nat66_in2out_trace
static u8 * format_nat66_in2out_trace(u8 *s, va_list *args)
Definition: nat66_in2out.c:31
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123