FD.io VPP  v19.08.3-2-gbabecb413
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
 
struct  ah_decrypt_packet_data_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_always_inline void ah_process_ops (vlib_main_t *vm, vlib_node_runtime_t *node, vnet_crypto_op_t *ops, vlib_buffer_t *b[], u16 *nexts)
 
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") \
_ (NO_TAIL_SPACE, "not enough buffer tail space (dropped)") \
_ (DROP_FRAGMENTS, "IP fragments drop") \
_ (REPLAY, "SA replayed packet")

Definition at line 40 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")
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 48 of file ah_decrypt.c.

◆ ah_decrypt_next_t

Enumerator
AH_DECRYPT_N_NEXT 

Definition at line 33 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 405 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 431 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 135 of file ah_decrypt.c.

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

◆ ah_process_ops()

static_always_inline void ah_process_ops ( vlib_main_t vm,
vlib_node_runtime_t node,
vnet_crypto_op_t ops,
vlib_buffer_t b[],
u16 nexts 
)

Definition at line 108 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 70 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:56
unsigned int u32
Definition: types.h:88
static u8 * format_ah_decrypt_trace(u8 *s, va_list *args)
Definition: ah_decrypt.c:70
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:63
#define foreach_ah_decrypt_next
Definition: ah_decrypt.c:27

(constructor) VLIB_REGISTER_NODE (ah4_decrypt_node)

Definition at line 413 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:56
unsigned int u32
Definition: types.h:88
static u8 * format_ah_decrypt_trace(u8 *s, va_list *args)
Definition: ah_decrypt.c:70
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:63
#define foreach_ah_decrypt_next
Definition: ah_decrypt.c:27

(constructor) VLIB_REGISTER_NODE (ah6_decrypt_node)

Definition at line 439 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:40

Definition at line 56 of file ah_decrypt.c.