FD.io VPP  v17.10-9-gd594711
Vector Packet Processing
nat64_out2in.c File Reference

NAT64 IPv4 to IPv6 translation (otside to inside network) More...

+ Include dependency graph for nat64_out2in.c:

Go to the source code of this file.

Data Structures

struct  nat64_out2in_trace_t
 
struct  nat64_out2in_set_ctx_t_
 

Macros

#define foreach_nat64_out2in_error
 

Typedefs

typedef struct nat64_out2in_set_ctx_t_ nat64_out2in_set_ctx_t
 

Enumerations

enum  nat64_out2in_error_t { NAT64_OUT2IN_N_ERROR }
 
enum  nat64_out2in_next_t { NAT64_OUT2IN_NEXT_LOOKUP, NAT64_OUT2IN_NEXT_DROP, NAT64_OUT2IN_N_NEXT }
 

Functions

static u8format_nat64_out2in_trace (u8 *s, va_list *args)
 
static int nat64_out2in_tcp_udp_set_cb (ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static int nat64_out2in_icmp_set_cb (ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static int nat64_out2in_inner_icmp_set_cb (ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static int nat64_out2in_unk_proto_set_cb (ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static uword nat64_out2in_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (nat64_out2in_node, nat64_out2in_node_fn)
 

Variables

vlib_node_registration_t nat64_out2in_node
 (constructor) VLIB_REGISTER_NODE (nat64_out2in_node) More...
 
static char * nat64_out2in_error_strings []
 

Detailed Description

NAT64 IPv4 to IPv6 translation (otside to inside network)

Definition in file nat64_out2in.c.

Macro Definition Documentation

#define foreach_nat64_out2in_error
Value:
_(UNSUPPORTED_PROTOCOL, "Unsupported protocol") \
_(OUT2IN_PACKETS, "Good out2in packets processed") \
_(NO_TRANSLATION, "No translation") \
_(UNKNOWN, "unknown")

Definition at line 46 of file nat64_out2in.c.

Typedef Documentation

Enumeration Type Documentation

Enumerator
NAT64_OUT2IN_N_ERROR 

Definition at line 52 of file nat64_out2in.c.

Enumerator
NAT64_OUT2IN_NEXT_LOOKUP 
NAT64_OUT2IN_NEXT_DROP 
NAT64_OUT2IN_N_NEXT 

Definition at line 66 of file nat64_out2in.c.

Function Documentation

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

Definition at line 31 of file nat64_out2in.c.

+ Here is the call graph for this function:

static int nat64_out2in_icmp_set_cb ( ip4_header_t ip4,
ip6_header_t ip6,
void *  arg 
)
static

Definition at line 152 of file nat64_out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_out2in_inner_icmp_set_cb ( ip4_header_t ip4,
ip6_header_t ip6,
void *  arg 
)
static

Definition at line 225 of file nat64_out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword nat64_out2in_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 372 of file nat64_out2in.c.

+ Here is the call graph for this function:

static int nat64_out2in_tcp_udp_set_cb ( ip4_header_t ip4,
ip6_header_t ip6,
void *  arg 
)
static

Definition at line 80 of file nat64_out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int nat64_out2in_unk_proto_set_cb ( ip4_header_t ip4,
ip6_header_t ip6,
void *  arg 
)
static

Definition at line 316 of file nat64_out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( nat64_out2in_node  ,
nat64_out2in_node_fn   
)

Variable Documentation

char* nat64_out2in_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat64_out2in_error
Definition: nat64_out2in.c:46

Definition at line 60 of file nat64_out2in.c.

vlib_node_registration_t nat64_out2in_node
Initial value:
= {
.function = nat64_out2in_node_fn,
.name = "nat64-out2in",
.vector_size = sizeof (u32),
.format_trace = format_nat64_out2in_trace,
.error_strings = nat64_out2in_error_strings,.n_next_nodes = 2,
.next_nodes = {
[NAT64_OUT2IN_NEXT_DROP] = "error-drop",
[NAT64_OUT2IN_NEXT_LOOKUP] = "ip6-lookup",
},
}
static char * nat64_out2in_error_strings[]
Definition: nat64_out2in.c:60
static u8 * format_nat64_out2in_trace(u8 *s, va_list *args)
Definition: nat64_out2in.c:31
#define ARRAY_LEN(x)
Definition: clib.h:59
static uword nat64_out2in_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: nat64_out2in.c:372
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (nat64_out2in_node)

Definition at line 44 of file nat64_out2in.c.