FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ipsec_output.c File Reference
+ Include dependency graph for ipsec_output.c:

Go to the source code of this file.

Data Structures

struct  ipsec_output_trace_t
 

Macros

#define foreach_ipsec_output_error
 

Enumerations

enum  ipsec_output_error_t { IPSEC_DECAP_N_ERROR }
 

Functions

static u8format_ipsec_output_trace (u8 *s, va_list *args)
 
static ipsec_policy_tipsec_output_policy_match (ipsec_spd_t *spd, u8 pr, u32 la, u32 ra, u16 lp, u16 rp)
 
static uword ip6_addr_match_range (ip6_address_t *a, ip6_address_t *la, ip6_address_t *ua)
 
static ipsec_policy_tipsec6_output_policy_match (ipsec_spd_t *spd, ip6_address_t *la, ip6_address_t *ra, u16 lp, u16 rp, u8 pr)
 
static uword ipsec_output_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ipv6)
 
VLIB_NODE_FN() ipsec4_output_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ipsec6_output_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * ipsec_output_error_strings []
 
vlib_node_registration_t ipsec4_output_node
 (constructor) VLIB_REGISTER_NODE (ipsec4_output_node) More...
 
vlib_node_registration_t ipsec6_output_node
 (constructor) VLIB_REGISTER_NODE (ipsec6_output_node) More...
 

Macro Definition Documentation

◆ foreach_ipsec_output_error

#define foreach_ipsec_output_error
Value:
_(RX_PKTS, "IPSec pkts received") \
_(POLICY_DISCARD, "IPSec policy discard") \
_(POLICY_NO_MATCH, "IPSec policy (no match)") \
_(POLICY_PROTECT, "IPSec policy protect") \
_(POLICY_BYPASS, "IPSec policy bypass") \
_(ENCAPS_FAILED, "IPSec encapsulation failed")

Definition at line 25 of file ipsec_output.c.

Enumeration Type Documentation

◆ ipsec_output_error_t

Enumerator
IPSEC_DECAP_N_ERROR 

Definition at line 33 of file ipsec_output.c.

Function Documentation

◆ format_ipsec_output_trace()

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

Definition at line 55 of file ipsec_output.c.

◆ ip6_addr_match_range()

static uword ip6_addr_match_range ( ip6_address_t *  a,
ip6_address_t *  la,
ip6_address_t *  ua 
)
inlinestatic

Definition at line 118 of file ipsec_output.c.

+ Here is the caller graph for this function:

◆ ipsec4_output_node()

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

Definition at line 426 of file ipsec_output.c.

+ Here is the call graph for this function:

◆ ipsec6_output_node()

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

Definition at line 452 of file ipsec_output.c.

+ Here is the call graph for this function:

◆ ipsec6_output_policy_match()

static ipsec_policy_t* ipsec6_output_policy_match ( ipsec_spd_t spd,
ip6_address_t *  la,
ip6_address_t *  ra,
u16  lp,
u16  rp,
u8  pr 
)
inlinestatic

Definition at line 128 of file ipsec_output.c.

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

◆ ipsec_output_inline()

static uword ipsec_output_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  is_ipv6 
)
inlinestatic

Definition at line 175 of file ipsec_output.c.

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

◆ ipsec_output_policy_match()

static ipsec_policy_t* ipsec_output_policy_match ( ipsec_spd_t spd,
u8  pr,
u32  la,
u32  ra,
u16  lp,
u16  rp 
)
inlinestatic

Definition at line 67 of file ipsec_output.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ ipsec4_output_node

vlib_node_registration_t ipsec4_output_node
Initial value:
= {
.name = "ipsec4-output-feature",
.vector_size = sizeof (u32),
.format_trace = format_ipsec_output_trace,
.error_strings = ipsec_output_error_strings,
.n_next_nodes = IPSEC_OUTPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}

(constructor) VLIB_REGISTER_NODE (ipsec4_output_node)

Definition at line 434 of file ipsec_output.c.

◆ ipsec6_output_node

vlib_node_registration_t ipsec6_output_node
Initial value:
= {
.name = "ipsec6-output-feature",
.vector_size = sizeof (u32),
.format_trace = format_ipsec_output_trace,
.error_strings = ipsec_output_error_strings,
.n_next_nodes = IPSEC_OUTPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}

(constructor) VLIB_REGISTER_NODE (ipsec6_output_node)

Definition at line 459 of file ipsec_output.c.

◆ ipsec_output_error_strings

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

Definition at line 41 of file ipsec_output.c.

format_ipsec_output_trace
static u8 * format_ipsec_output_trace(u8 *s, va_list *args)
Definition: ipsec_output.c:55
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
ipsec_output_error_strings
static char * ipsec_output_error_strings[]
Definition: ipsec_output.c:41
IPSEC_OUTPUT_N_NEXT
@ IPSEC_OUTPUT_N_NEXT
Definition: ipsec_io.h:26
u32
unsigned int u32
Definition: types.h:88
foreach_ipsec_output_error
#define foreach_ipsec_output_error
Definition: ipsec_output.c:25
foreach_ipsec_output_next
#define foreach_ipsec_output_next
Definition: ipsec_io.h:18
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123