FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ah_decrypt.c File Reference
+ Include dependency graph for ah_decrypt.c:

Go to the source code of this file.

Data Structures

struct  ah_decrypt_trace_t
 

Macros

#define foreach_ah_decrypt_next
 
#define foreach_ah_decrypt_error
 

Enumerations

enum  ah_decrypt_next_t { AH_DECRYPT_N_NEXT }
 
enum  ah_decrypt_error_t { AH_DECRYPT_N_ERROR }
 

Functions

static u8format_ah_decrypt_trace (u8 *s, va_list *args)
 
static uword ah_decrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int is_ip6)
 
VLIB_NODE_FN() ah4_decrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ah6_decrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * ah_decrypt_error_strings []
 
vlib_node_registration_t ah4_decrypt_node
 (constructor) VLIB_REGISTER_NODE (ah4_decrypt_node) More...
 
vlib_node_registration_t ah6_decrypt_node
 (constructor) VLIB_REGISTER_NODE (ah6_decrypt_node) More...
 

Macro Definition Documentation

◆ foreach_ah_decrypt_error

#define foreach_ah_decrypt_error
Value:
_ (RX_PKTS, "AH pkts received") \
_ (DECRYPTION_FAILED, "AH decryption failed") \
_ (INTEG_ERROR, "Integrity check failed") \
_ (REPLAY, "SA replayed packet")

Definition at line 41 of file ah_decrypt.c.

◆ foreach_ah_decrypt_next

#define foreach_ah_decrypt_next
Value:
_ (DROP, "error-drop") \
_ (IP4_INPUT, "ip4-input") \
_ (IP6_INPUT, "ip6-input") \
_ (IPSEC_GRE_INPUT, "ipsec-gre-input")
DROP
Definition: error.def:41

Definition at line 27 of file ah_decrypt.c.

Enumeration Type Documentation

◆ ah_decrypt_error_t

Enumerator
AH_DECRYPT_N_ERROR 

Definition at line 47 of file ah_decrypt.c.

◆ ah_decrypt_next_t

Enumerator
AH_DECRYPT_N_NEXT 

Definition at line 34 of file ah_decrypt.c.

Function Documentation

◆ ah4_decrypt_node()

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

Definition at line 286 of file ah_decrypt.c.

+ Here is the call graph for this function:

◆ ah6_decrypt_node()

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

Definition at line 312 of file ah_decrypt.c.

+ Here is the call graph for this function:

◆ ah_decrypt_inline()

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

Definition at line 81 of file ah_decrypt.c.

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

◆ format_ah_decrypt_trace()

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

Definition at line 69 of file ah_decrypt.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ah4_decrypt_node

vlib_node_registration_t ah4_decrypt_node
Initial value:
= {
.name = "ah4-decrypt",
.vector_size = sizeof (u32),
.format_trace = format_ah_decrypt_trace,
.error_strings = ah_decrypt_error_strings,
.n_next_nodes = AH_DECRYPT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
static char * ah_decrypt_error_strings[]
Definition: ah_decrypt.c:55
unsigned int u32
Definition: types.h:88
static u8 * format_ah_decrypt_trace(u8 *s, va_list *args)
Definition: ah_decrypt.c:69
#define ARRAY_LEN(x)
Definition: clib.h:62
#define foreach_ah_decrypt_next
Definition: ah_decrypt.c:27

(constructor) VLIB_REGISTER_NODE (ah4_decrypt_node)

Definition at line 294 of file ah_decrypt.c.

◆ ah6_decrypt_node

vlib_node_registration_t ah6_decrypt_node
Initial value:
= {
.name = "ah6-decrypt",
.vector_size = sizeof (u32),
.format_trace = format_ah_decrypt_trace,
.error_strings = ah_decrypt_error_strings,
.n_next_nodes = AH_DECRYPT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
static char * ah_decrypt_error_strings[]
Definition: ah_decrypt.c:55
unsigned int u32
Definition: types.h:88
static u8 * format_ah_decrypt_trace(u8 *s, va_list *args)
Definition: ah_decrypt.c:69
#define ARRAY_LEN(x)
Definition: clib.h:62
#define foreach_ah_decrypt_next
Definition: ah_decrypt.c:27

(constructor) VLIB_REGISTER_NODE (ah6_decrypt_node)

Definition at line 320 of file ah_decrypt.c.

◆ ah_decrypt_error_strings

char* ah_decrypt_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ah_decrypt_error
Definition: ah_decrypt.c:41

Definition at line 55 of file ah_decrypt.c.