FD.io VPP  v16.06
Vector Packet Processing
esp_encrypt.c File Reference
+ Include dependency graph for esp_encrypt.c:

Go to the source code of this file.

Data Structures

struct  esp_encrypt_trace_t
 

Macros

#define ESP_SEQ_MAX   (4294967295UL)
 
#define foreach_esp_encrypt_next
 
#define foreach_esp_encrypt_error
 

Enumerations

enum  esp_encrypt_next_t { ESP_ENCRYPT_N_NEXT }
 
enum  esp_encrypt_error_t { ESP_ENCRYPT_N_ERROR }
 

Functions

static u8format_esp_encrypt_trace (u8 *s, va_list *args)
 
always_inline void esp_encrypt_aes_cbc (ipsec_crypto_alg_t alg, u8 *in, u8 *out, size_t in_len, u8 *key, u8 *iv)
 
always_inline int esp_seq_advance (ipsec_sa_t *sa)
 
static uword esp_encrypt_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * esp_encrypt_error_strings []
 
vlib_node_registration_t esp_encrypt_node
 (constructor) VLIB_REGISTER_NODE (esp_encrypt_node) More...
 

Macro Definition Documentation

#define ESP_SEQ_MAX   (4294967295UL)

Definition at line 25 of file esp_encrypt.c.

#define foreach_esp_encrypt_error
Value:
_(RX_PKTS, "ESP pkts received") \
_(NO_BUFFER, "No buffer (packet dropped)") \
_(DECRYPTION_FAILED, "ESP encryption failed") \
_(SEQ_CYCLED, "sequence number cycled")

Definition at line 40 of file esp_encrypt.c.

#define foreach_esp_encrypt_next
Value:
_(DROP, "error-drop") \
_(IP4_INPUT, "ip4-input") \
_(IP6_INPUT, "ip6-input") \
_(INTERFACE_OUTPUT, "interface-output")
DROP
Definition: error.def:41

Definition at line 27 of file esp_encrypt.c.

Enumeration Type Documentation

Enumerator
ESP_ENCRYPT_N_ERROR 

Definition at line 47 of file esp_encrypt.c.

Enumerator
ESP_ENCRYPT_N_NEXT 

Definition at line 34 of file esp_encrypt.c.

Function Documentation

always_inline void esp_encrypt_aes_cbc ( ipsec_crypto_alg_t  alg,
u8 in,
u8 out,
size_t  in_len,
u8 key,
u8 iv 
)

Definition at line 84 of file esp_encrypt.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword esp_encrypt_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 137 of file esp_encrypt.c.

+ Here is the call graph for this function:

always_inline int esp_seq_advance ( ipsec_sa_t sa)

Definition at line 114 of file esp_encrypt.c.

+ Here is the caller graph for this function:

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

Definition at line 70 of file esp_encrypt.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* esp_encrypt_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_esp_encrypt_error
Definition: esp_encrypt.c:40

Definition at line 54 of file esp_encrypt.c.

vlib_node_registration_t esp_encrypt_node
Initial value:
= {
.function = esp_encrypt_node_fn,
.name = "esp-encrypt",
.vector_size = sizeof (u32),
.format_trace = format_esp_encrypt_trace,
.error_strings = esp_encrypt_error_strings,
.n_next_nodes = ESP_ENCRYPT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
#define foreach_esp_encrypt_next
Definition: esp_encrypt.c:27
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword esp_encrypt_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: esp_encrypt.c:137
static u8 * format_esp_encrypt_trace(u8 *s, va_list *args)
Definition: esp_encrypt.c:70
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * esp_encrypt_error_strings[]
Definition: esp_encrypt.c:54

(constructor) VLIB_REGISTER_NODE (esp_encrypt_node)

Definition at line 60 of file esp_encrypt.c.