FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ipsec_tun_in.c File Reference
+ Include dependency graph for ipsec_tun_in.c:

Go to the source code of this file.

Data Structures

struct  ipsec_tun_protect_input_trace_t
 

Macros

#define foreach_ipsec_tun_protect_input_error
 

Typedefs

typedef enum ipsec_tun_next_t_ ipsec_tun_next_t
 

Enumerations

enum  ipsec_tun_protect_input_error_t { IPSEC_TUN_PROTECT_INPUT_N_ERROR }
 
enum  ipsec_tun_next_t_ { IPSEC_TUN_PROTECT_N_NEXT }
 

Functions

static u8format_ipsec_tun_protect_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)
 
static u16 ipsec_ip6_if_no_tunnel (vlib_node_runtime_t *node, vlib_buffer_t *b, const esp_header_t *esp)
 
static uword ipsec_tun_protect_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6)
 
VLIB_NODE_FN() ipsec4_tun_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ipsec6_tun_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * ipsec_tun_protect_input_error_strings []
 
vlib_node_registration_t ipsec4_tun_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec4_tun_input_node) More...
 
vlib_node_registration_t ipsec6_tun_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec6_tun_input_node) More...
 

Macro Definition Documentation

◆ foreach_ipsec_tun_protect_input_error

#define foreach_ipsec_tun_protect_input_error
Value:
_(RX, "good packets received") \
_(DISABLED, "ipsec packets received on disabled interface") \
_(NO_TUNNEL, "no matching tunnel") \
_(TUNNEL_MISMATCH, "SPI-tunnel mismatch") \
_(NAT_KEEPALIVE, "NAT Keepalive") \
_(TOO_SHORT, "Too Short") \
_(SPI_0, "SPI 0")

Definition at line 30 of file ipsec_tun_in.c.

Typedef Documentation

◆ ipsec_tun_next_t

Enumeration Type Documentation

◆ ipsec_tun_next_t_

Enumerator
IPSEC_TUN_PROTECT_N_NEXT 

Definition at line 53 of file ipsec_tun_in.c.

◆ ipsec_tun_protect_input_error_t

Enumerator
IPSEC_TUN_PROTECT_INPUT_N_ERROR 

Definition at line 45 of file ipsec_tun_in.c.

Function Documentation

◆ format_ipsec_tun_protect_input_trace()

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

Definition at line 73 of file ipsec_tun_in.c.

+ Here is the call graph for this function:

◆ ipsec4_tun_input_node()

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

Definition at line 380 of file ipsec_tun_in.c.

+ Here is the call graph for this function:

◆ ipsec6_tun_input_node()

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

Definition at line 399 of file ipsec_tun_in.c.

+ Here is the call graph for this function:

◆ ipsec_ip4_if_no_tunnel()

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 
)
inlinestatic

Definition at line 90 of file ipsec_tun_in.c.

+ Here is the caller graph for this function:

◆ ipsec_ip6_if_no_tunnel()

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

Definition at line 110 of file ipsec_tun_in.c.

+ Here is the caller graph for this function:

◆ ipsec_tun_protect_input_inline()

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

Definition at line 120 of file ipsec_tun_in.c.

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

Variable Documentation

◆ ipsec4_tun_input_node

vlib_node_registration_t ipsec4_tun_input_node
Initial value:
= {
.name = "ipsec4-tun-input",
.vector_size = sizeof (u32),
.sibling_of = "device-input",
}

(constructor) VLIB_REGISTER_NODE (ipsec4_tun_input_node)

Definition at line 388 of file ipsec_tun_in.c.

◆ ipsec6_tun_input_node

vlib_node_registration_t ipsec6_tun_input_node
Initial value:
= {
.name = "ipsec6-tun-input",
.vector_size = sizeof (u32),
.sibling_of = "device-input",
}

(constructor) VLIB_REGISTER_NODE (ipsec6_tun_input_node)

Definition at line 407 of file ipsec_tun_in.c.

◆ ipsec_tun_protect_input_error_strings

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

Definition at line 39 of file ipsec_tun_in.c.

RX
@ RX
Definition: interface_types.api:78
ipsec_tun_protect_input_error_strings
static char * ipsec_tun_protect_input_error_strings[]
Definition: ipsec_tun_in.c:39
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_ipsec_tun_protect_input_trace
static u8 * format_ipsec_tun_protect_input_trace(u8 *s, va_list *args)
Definition: ipsec_tun_in.c:73
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
foreach_ipsec_tun_protect_input_error
#define foreach_ipsec_tun_protect_input_error
Definition: ipsec_tun_in.c:30
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123