FD.io VPP  v16.09
Vector Packet Processing
out2in.c File Reference
+ Include dependency graph for out2in.c:

Go to the source code of this file.

Data Structures

struct  snat_out2in_trace_t
 

Macros

#define foreach_snat_out2in_error
 

Enumerations

enum  snat_out2in_error_t { SNAT_OUT2IN_N_ERROR }
 
enum  snat_out2in_next_t { SNAT_OUT2IN_NEXT_DROP, SNAT_OUT2IN_N_NEXT }
 

Functions

static u8format_snat_out2in_trace (u8 *s, va_list *args)
 
static u32 icmp_out2in_slow_path (snat_main_t *sm, vlib_buffer_t *b0, ip4_header_t *ip0, icmp46_header_t *icmp0, u32 sw_if_index0, u32 rx_fib_index0, vlib_node_runtime_t *node, u32 next0, f64 now)
 
static uword snat_out2in_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (snat_out2in_node, snat_out2in_node_fn)
 

Variables

vlib_node_registration_t snat_out2in_node
 (constructor) VLIB_REGISTER_NODE (snat_out2in_node) More...
 
static char * snat_out2in_error_strings []
 

Macro Definition Documentation

#define foreach_snat_out2in_error
Value:
_(UNSUPPORTED_PROTOCOL, "Unsupported protocol") \
_(OUT2IN_PACKETS, "Good out2in packets processed") \
_(BAD_ICMP_TYPE, "icmp type not echo-reply") \
_(NO_TRANSLATION, "No translation")

Definition at line 50 of file out2in.c.

Enumeration Type Documentation

Enumerator
SNAT_OUT2IN_N_ERROR 

Definition at line 56 of file out2in.c.

Enumerator
SNAT_OUT2IN_NEXT_DROP 
SNAT_OUT2IN_N_NEXT 

Definition at line 69 of file out2in.c.

Function Documentation

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

Definition at line 37 of file out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 icmp_out2in_slow_path ( snat_main_t sm,
vlib_buffer_t b0,
ip4_header_t ip0,
icmp46_header_t *  icmp0,
u32  sw_if_index0,
u32  rx_fib_index0,
vlib_node_runtime_t node,
u32  next0,
f64  now 
)
inlinestatic

Definition at line 74 of file out2in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 157 of file out2in.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( snat_out2in_node  ,
snat_out2in_node_fn   
)

+ Here is the caller graph for this function:

Variable Documentation

char* snat_out2in_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_snat_out2in_error
Definition: out2in.c:50

Definition at line 63 of file out2in.c.

vlib_node_registration_t snat_out2in_node
Initial value:
= {
.function = snat_out2in_node_fn,
.name = "snat-out2in",
.vector_size = sizeof (u32),
.format_trace = format_snat_out2in_trace,
.error_strings = snat_out2in_error_strings,
.runtime_data_bytes = sizeof (snat_runtime_t),
.n_next_nodes = SNAT_OUT2IN_N_NEXT,
.next_nodes = {
[SNAT_OUT2IN_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * snat_out2in_error_strings[]
Definition: out2in.c:63
static u8 * format_snat_out2in_trace(u8 *s, va_list *args)
Definition: out2in.c:37
static uword snat_out2in_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: out2in.c:157

(constructor) VLIB_REGISTER_NODE (snat_out2in_node)

Definition at line 28 of file out2in.c.