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

Go to the source code of this file.

Data Structures

struct  ah_encrypt_trace_t
 
struct  ah_encrypt_packet_data_t
 

Macros

#define foreach_ah_encrypt_next
 
#define foreach_ah_encrypt_error
 

Enumerations

enum  ah_encrypt_next_t { AH_ENCRYPT_N_NEXT }
 
enum  ah_encrypt_error_t { AH_ENCRYPT_N_ERROR }
 

Functions

static u8format_ah_encrypt_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_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip6)
 
VLIB_NODE_FN() ah4_encrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ah6_encrypt_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tah_encrypt_init (vlib_main_t *vm)
 

Variables

static char * ah_encrypt_error_strings []
 
vlib_node_registration_t ah4_encrypt_node
 (constructor) VLIB_REGISTER_NODE (ah4_encrypt_node) More...
 
vlib_node_registration_t ah6_encrypt_node
 (constructor) VLIB_REGISTER_NODE (ah6_encrypt_node) More...
 

Macro Definition Documentation

◆ foreach_ah_encrypt_error

#define foreach_ah_encrypt_error
Value:
_ (RX_PKTS, "AH pkts received") \
_ (CRYPTO_ENGINE_ERROR, "crypto engine error (packet dropped)") \
_ (SEQ_CYCLED, "sequence number cycled (packet dropped)")

Definition at line 41 of file ah_encrypt.c.

◆ foreach_ah_encrypt_next

#define foreach_ah_encrypt_next
Value:
_ (DROP, "error-drop") \
_ (HANDOFF, "handoff") \
_ (INTERFACE_OUTPUT, "interface-output")

Definition at line 27 of file ah_encrypt.c.

Enumeration Type Documentation

◆ ah_encrypt_error_t

Enumerator
AH_ENCRYPT_N_ERROR 

Definition at line 46 of file ah_encrypt.c.

◆ ah_encrypt_next_t

Enumerator
AH_ENCRYPT_N_NEXT 

Definition at line 34 of file ah_encrypt.c.

Function Documentation

◆ ah4_encrypt_node()

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

Definition at line 451 of file ah_encrypt.c.

+ Here is the call graph for this function:

◆ ah6_encrypt_node()

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

Definition at line 477 of file ah_encrypt.c.

+ Here is the call graph for this function:

◆ ah_encrypt_init()

static clib_error_t* ah_encrypt_init ( vlib_main_t vm)
static

Definition at line 506 of file ah_encrypt.c.

+ Here is the call graph for this function:

◆ ah_encrypt_inline()

static uword ah_encrypt_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip6 
)
inlinestatic

Definition at line 133 of file ah_encrypt.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 84 of file ah_encrypt.c.

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

◆ format_ah_encrypt_trace()

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

Definition at line 71 of file ah_encrypt.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ah4_encrypt_node

vlib_node_registration_t ah4_encrypt_node
Initial value:
= {
.name = "ah4-encrypt",
.vector_size = sizeof (u32),
.format_trace = format_ah_encrypt_trace,
.error_strings = ah_encrypt_error_strings,
.n_next_nodes = AH_ENCRYPT_N_NEXT,
.next_nodes = {
[AH_ENCRYPT_NEXT_DROP] = "ip4-drop",
[AH_ENCRYPT_NEXT_HANDOFF] = "ah4-encrypt-handoff",
[AH_ENCRYPT_NEXT_INTERFACE_OUTPUT] = "interface-output",
},
}

(constructor) VLIB_REGISTER_NODE (ah4_encrypt_node)

Definition at line 459 of file ah_encrypt.c.

◆ ah6_encrypt_node

vlib_node_registration_t ah6_encrypt_node
Initial value:
= {
.name = "ah6-encrypt",
.vector_size = sizeof (u32),
.format_trace = format_ah_encrypt_trace,
.error_strings = ah_encrypt_error_strings,
.n_next_nodes = AH_ENCRYPT_N_NEXT,
.next_nodes = {
[AH_ENCRYPT_NEXT_DROP] = "ip6-drop",
[AH_ENCRYPT_NEXT_HANDOFF] = "ah6-encrypt-handoff",
[AH_ENCRYPT_NEXT_INTERFACE_OUTPUT] = "interface-output",
},
}

(constructor) VLIB_REGISTER_NODE (ah6_encrypt_node)

Definition at line 485 of file ah_encrypt.c.

◆ ah_encrypt_error_strings

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

Definition at line 54 of file ah_encrypt.c.

HANDOFF
@ HANDOFF
Definition: ip4_full_reass.c:221
format_ah_encrypt_trace
static u8 * format_ah_encrypt_trace(u8 *s, va_list *args)
Definition: ah_encrypt.c:71
DROP
DROP
Definition: error.def:41
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ah_encrypt_error_strings
static char * ah_encrypt_error_strings[]
Definition: ah_encrypt.c:54
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
u32
unsigned int u32
Definition: types.h:88
foreach_ah_encrypt_error
#define foreach_ah_encrypt_error
Definition: ah_encrypt.c:41
AH_ENCRYPT_N_NEXT
@ AH_ENCRYPT_N_NEXT
Definition: ah_encrypt.c:38
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123