FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
ipsec_if_in.c File Reference
+ Include dependency graph for ipsec_if_in.c:

Go to the source code of this file.

Data Structures

struct  ipsec_if_input_trace_t
 

Macros

#define foreach_ipsec_if_input_error
 

Enumerations

enum  ipsec_if_input_error_t { IPSEC_IF_INPUT_N_ERROR }
 

Functions

static u8format_ipsec_if_input_trace (u8 *s, va_list *args)
 
static u16 ipsec_ip4_if_no_tunnel (vlib_node_runtime_t *node, vlib_buffer_t *b, const esp_header_t *esp, const ip4_header_t *ip4, u16 offset)
 
static u16 ipsec_ip6_if_no_tunnel (vlib_node_runtime_t *node, vlib_buffer_t *b, const esp_header_t *esp, u16 offset)
 
static uword ipsec_if_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6)
 
VLIB_NODE_FN() ipsec4_if_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ipsec6_if_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * ipsec_if_input_error_strings []
 
vlib_node_registration_t ipsec4_if_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec4_if_input_node) More...
 
vlib_node_registration_t ipsec6_if_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec6_if_input_node) More...
 

Macro Definition Documentation

#define foreach_ipsec_if_input_error
Value:
_(RX, "good packets received") \
_(DISABLED, "ipsec packets received on disabled interface") \
_(NO_TUNNEL, "no matching tunnel") \
_(SPI_0, "SPI 0")

Definition at line 28 of file ipsec_if_in.c.

Enumeration Type Documentation

Enumerator
IPSEC_IF_INPUT_N_ERROR 

Definition at line 40 of file ipsec_if_in.c.

Function Documentation

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

Definition at line 56 of file ipsec_if_in.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() ipsec4_if_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 610 of file ipsec_if_in.c.

+ Here is the call graph for this function:

VLIB_NODE_FN() ipsec6_if_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 629 of file ipsec_if_in.c.

+ Here is the call graph for this function:

static uword ipsec_if_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  is_ip6 
)
inlinestatic

Definition at line 108 of file ipsec_if_in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u16 ipsec_ip4_if_no_tunnel ( vlib_node_runtime_t node,
vlib_buffer_t b,
const esp_header_t esp,
const ip4_header_t ip4,
u16  offset 
)
inlinestatic

Definition at line 67 of file ipsec_if_in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u16 ipsec_ip6_if_no_tunnel ( vlib_node_runtime_t node,
vlib_buffer_t b,
const esp_header_t esp,
u16  offset 
)
inlinestatic

Definition at line 89 of file ipsec_if_in.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t ipsec4_if_input_node
Initial value:
= {
.name = "ipsec4-if-input",
.vector_size = sizeof (u32),
.format_trace = format_ipsec_if_input_trace,
.error_strings = ipsec_if_input_error_strings,
.sibling_of = "ipsec4-input-feature",
}
static u8 * format_ipsec_if_input_trace(u8 *s, va_list *args)
Definition: ipsec_if_in.c:56
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static char * ipsec_if_input_error_strings[]
Definition: ipsec_if_in.c:34

(constructor) VLIB_REGISTER_NODE (ipsec4_if_input_node)

Definition at line 618 of file ipsec_if_in.c.

vlib_node_registration_t ipsec6_if_input_node
Initial value:
= {
.name = "ipsec6-if-input",
.vector_size = sizeof (u32),
.format_trace = format_ipsec_if_input_trace,
.error_strings = ipsec_if_input_error_strings,
.sibling_of = "ipsec6-input-feature",
}
static u8 * format_ipsec_if_input_trace(u8 *s, va_list *args)
Definition: ipsec_if_in.c:56
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static char * ipsec_if_input_error_strings[]
Definition: ipsec_if_in.c:34

(constructor) VLIB_REGISTER_NODE (ipsec6_if_input_node)

Definition at line 637 of file ipsec_if_in.c.

char* ipsec_if_input_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ipsec_if_input_error
Definition: ipsec_if_in.c:28

Definition at line 34 of file ipsec_if_in.c.