FD.io VPP  v19.08.3-2-gbabecb413
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 41 of file ah_encrypt.c.

◆ foreach_ah_encrypt_next

#define foreach_ah_encrypt_next
Value:
_ (DROP, "error-drop") \
_ (IP4_LOOKUP, "ip4-lookup") \
_ (IP6_LOOKUP, "ip6-lookup") \
_ (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 47 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 404 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 430 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 85 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 72 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 = {
#define _(s,n)
},
}
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:72
static char * ah_encrypt_error_strings[]
Definition: ah_encrypt.c:55
#define ARRAY_LEN(x)
Definition: clib.h:63
#define foreach_ah_encrypt_next
Definition: ah_encrypt.c:26

(constructor) VLIB_REGISTER_NODE (ah4_encrypt_node)

Definition at line 412 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 = {
#define _(s,n)
},
}
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:72
static char * ah_encrypt_error_strings[]
Definition: ah_encrypt.c:55
#define ARRAY_LEN(x)
Definition: clib.h:63
#define foreach_ah_encrypt_next
Definition: ah_encrypt.c:26

(constructor) VLIB_REGISTER_NODE (ah6_encrypt_node)

Definition at line 438 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:41

Definition at line 55 of file ah_encrypt.c.