FD.io VPP  v21.01.1
Vector Packet Processing
nat64_out2in.c File Reference
+ 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_
 
struct  nat64_out2in_frag_set_ctx_t_
 
struct  nat64_out2in_handoff_trace_t
 

Macros

#define foreach_nat64_out2in_error
 
#define foreach_nat64_out2in_handoff_error
 

Typedefs

typedef struct nat64_out2in_set_ctx_t_ nat64_out2in_set_ctx_t
 
typedef struct nat64_out2in_frag_set_ctx_t_ nat64_out2in_frag_set_ctx_t
 

Enumerations

enum  nat64_out2in_error_t { NAT64_OUT2IN_N_ERROR }
 
enum  nat64_out2in_next_t { NAT64_OUT2IN_NEXT_IP6_LOOKUP, NAT64_OUT2IN_NEXT_IP4_LOOKUP, NAT64_OUT2IN_NEXT_DROP, NAT64_OUT2IN_N_NEXT }
 
enum  nat64_out2in_handoff_error_t { NAT64_OUT2IN_HANDOFF_N_ERROR }
 

Functions

static u8format_nat64_out2in_trace (u8 *s, va_list *args)
 
static int nat64_out2in_tcp_udp (vlib_main_t *vm, vlib_buffer_t *b, nat64_out2in_set_ctx_t *ctx)
 
static int nat64_out2in_icmp_set_cb (vlib_buffer_t *b, ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static int nat64_out2in_inner_icmp_set_cb (vlib_buffer_t *b, ip4_header_t *ip4, ip6_header_t *ip6, void *arg)
 
static int nat64_out2in_unk_proto (vlib_main_t *vm, vlib_buffer_t *p, nat64_out2in_set_ctx_t *ctx)
 
VLIB_NODE_FN() nat64_out2in_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_nat64_out2in_handoff_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() nat64_out2in_handoff_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

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

Macro Definition Documentation

◆ foreach_nat64_out2in_error

#define foreach_nat64_out2in_error
Value:
_(UNSUPPORTED_PROTOCOL, "unsupported protocol") \
_(NO_TRANSLATION, "no translation") \
_(UNKNOWN, "unknown")

Definition at line 41 of file nat64_out2in.c.

◆ foreach_nat64_out2in_handoff_error

#define foreach_nat64_out2in_handoff_error
Value:
_(CONGESTION_DROP, "congestion drop") \
_(SAME_WORKER, "same worker") \
_(DO_HANDOFF, "do handoff")

Definition at line 670 of file nat64_out2in.c.

Typedef Documentation

◆ nat64_out2in_frag_set_ctx_t

◆ nat64_out2in_set_ctx_t

Enumeration Type Documentation

◆ nat64_out2in_error_t

Enumerator
NAT64_OUT2IN_N_ERROR 

Definition at line 46 of file nat64_out2in.c.

◆ nat64_out2in_handoff_error_t

Enumerator
NAT64_OUT2IN_HANDOFF_N_ERROR 

Definition at line 675 of file nat64_out2in.c.

◆ nat64_out2in_next_t

Enumerator
NAT64_OUT2IN_NEXT_IP6_LOOKUP 
NAT64_OUT2IN_NEXT_IP4_LOOKUP 
NAT64_OUT2IN_NEXT_DROP 
NAT64_OUT2IN_N_NEXT 

Definition at line 60 of file nat64_out2in.c.

Function Documentation

◆ format_nat64_out2in_handoff_trace()

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

Definition at line 695 of file nat64_out2in.c.

◆ format_nat64_out2in_trace()

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

Definition at line 28 of file nat64_out2in.c.

◆ nat64_out2in_handoff_node()

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

Definition at line 708 of file nat64_out2in.c.

+ Here is the call graph for this function:

◆ nat64_out2in_icmp_set_cb()

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

Definition at line 241 of file nat64_out2in.c.

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

◆ nat64_out2in_inner_icmp_set_cb()

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

Definition at line 322 of file nat64_out2in.c.

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

◆ nat64_out2in_node()

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

Definition at line 515 of file nat64_out2in.c.

+ Here is the call graph for this function:

◆ nat64_out2in_tcp_udp()

static int nat64_out2in_tcp_udp ( vlib_main_t vm,
vlib_buffer_t b,
nat64_out2in_set_ctx_t ctx 
)
static

Definition at line 76 of file nat64_out2in.c.

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

◆ nat64_out2in_unk_proto()

static int nat64_out2in_unk_proto ( vlib_main_t vm,
vlib_buffer_t p,
nat64_out2in_set_ctx_t ctx 
)
static

Definition at line 414 of file nat64_out2in.c.

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

Variable Documentation

◆ nat64_out2in_error_strings

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

Definition at line 54 of file nat64_out2in.c.

◆ nat64_out2in_handoff_error_strings

char* nat64_out2in_handoff_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_nat64_out2in_handoff_error
Definition: nat64_out2in.c:670

Definition at line 683 of file nat64_out2in.c.

◆ nat64_out2in_handoff_node

vlib_node_registration_t nat64_out2in_handoff_node
Initial value:
= {
.name = "nat64-out2in-handoff",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * nat64_out2in_handoff_error_strings[]
Definition: nat64_out2in.c:683
static u8 * format_nat64_out2in_handoff_trace(u8 *s, va_list *args)
Definition: nat64_out2in.c:695
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (nat64_out2in_handoff_node)

Definition at line 774 of file nat64_out2in.c.

◆ nat64_out2in_node

vlib_node_registration_t nat64_out2in_node
Initial value:
= {
.name = "nat64-out2in",
.vector_size = sizeof (u32),
.format_trace = format_nat64_out2in_trace,
.error_strings = nat64_out2in_error_strings,
.n_next_nodes = NAT64_OUT2IN_N_NEXT,
.next_nodes = {
[NAT64_OUT2IN_NEXT_DROP] = "error-drop",
[NAT64_OUT2IN_NEXT_IP6_LOOKUP] = "ip6-lookup",
[NAT64_OUT2IN_NEXT_IP4_LOOKUP] = "ip4-lookup",
},
}
static char * nat64_out2in_error_strings[]
Definition: nat64_out2in.c:54
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_nat64_out2in_trace(u8 *s, va_list *args)
Definition: nat64_out2in.c:28
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (nat64_out2in_node)

Definition at line 643 of file nat64_out2in.c.