FD.io VPP  v21.06-3-gbb25fbf28
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)
 
static clib_error_tah_decrypt_init (vlib_main_t *vm)
 

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 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") \
_(HANDOFF, "handoff")

Definition at line 27 of file ah_decrypt.c.

Enumeration Type Documentation

◆ ah_decrypt_error_t

Enumerator
AH_DECRYPT_N_ERROR 

Definition at line 49 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 421 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 448 of file ah_decrypt.c.

+ Here is the call graph for this function:

◆ ah_decrypt_init()

static clib_error_t* ah_decrypt_init ( vlib_main_t vm)
static

Definition at line 478 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 136 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 109 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 71 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 = {
[AH_DECRYPT_NEXT_DROP] = "ip4-drop",
[AH_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[AH_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[AH_DECRYPT_NEXT_HANDOFF] = "ah4-decrypt-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (ah4_decrypt_node)

Definition at line 429 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 = {
[AH_DECRYPT_NEXT_DROP] = "ip6-drop",
[AH_DECRYPT_NEXT_IP4_INPUT] = "ip4-input-no-checksum",
[AH_DECRYPT_NEXT_IP6_INPUT] = "ip6-input",
[AH_DECRYPT_NEXT_HANDOFF] = "ah6-decrypt-handoff",
},
}

(constructor) VLIB_REGISTER_NODE (ah6_decrypt_node)

Definition at line 456 of file ah_decrypt.c.

◆ ah_decrypt_error_strings

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

Definition at line 57 of file ah_decrypt.c.

HANDOFF
@ HANDOFF
Definition: ip4_full_reass.c:221
DROP
DROP
Definition: error.def:41
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ah_decrypt_error_strings
static char * ah_decrypt_error_strings[]
Definition: ah_decrypt.c:57
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
foreach_ah_decrypt_error
#define foreach_ah_decrypt_error
Definition: ah_decrypt.c:41
REPLAY
@ REPLAY
Definition: vlib_api_cli.c:348
AH_DECRYPT_N_NEXT
@ AH_DECRYPT_N_NEXT
Definition: ah_decrypt.c:38
u32
unsigned int u32
Definition: types.h:88
format_ah_decrypt_trace
static u8 * format_ah_decrypt_trace(u8 *s, va_list *args)
Definition: ah_decrypt.c:71
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123