FD.io VPP  v20.05.1-6-gf53edbc3b
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)
 

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")

Definition at line 40 of file ah_encrypt.c.

◆ foreach_ah_encrypt_next

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

Definition at line 26 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 33 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 418 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 444 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 132 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",
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_ah_encrypt_trace(u8 *s, va_list *args)
Definition: ah_encrypt.c:71
static char * ah_encrypt_error_strings[]
Definition: ah_encrypt.c:54
#define ARRAY_LEN(x)
Definition: clib.h:66

(constructor) VLIB_REGISTER_NODE (ah4_encrypt_node)

Definition at line 426 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",
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static u8 * format_ah_encrypt_trace(u8 *s, va_list *args)
Definition: ah_encrypt.c:71
static char * ah_encrypt_error_strings[]
Definition: ah_encrypt.c:54
#define ARRAY_LEN(x)
Definition: clib.h:66

(constructor) VLIB_REGISTER_NODE (ah6_encrypt_node)

Definition at line 452 of file ah_encrypt.c.

◆ ah_encrypt_error_strings

char* ah_encrypt_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ah_encrypt_error
Definition: ah_encrypt.c:40

Definition at line 54 of file ah_encrypt.c.