FD.io VPP
v19.04.1-1-ge4a0f9f
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | ipsec_key_t_ |
struct | ipsec_sa_t |
Macros | |
#define | IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE (64) |
#define | foreach_ipsec_crypto_alg |
#define | IPSEC_CRYPTO_ALG_IS_GCM(_alg) |
#define | foreach_ipsec_integ_alg |
#define | IPSEC_N_PROTOCOLS (IPSEC_PROTOCOL_ESP+1) |
#define | IPSEC_KEY_MAX_LEN 128 |
#define | foreach_ipsec_sa_flags |
Typedefs | |
typedef struct ipsec_key_t_ | ipsec_key_t |
typedef enum ipsec_sad_flags_t_ | ipsec_sa_flags_t |
typedef walk_rc_t(* | ipsec_sa_walk_cb_t) (ipsec_sa_t *sa, void *ctx) |
Enumerations | |
enum | ipsec_crypto_alg_t { IPSEC_CRYPTO_N_ALG } |
enum | ipsec_integ_alg_t { IPSEC_INTEG_N_ALG } |
enum | ipsec_protocol_t { IPSEC_PROTOCOL_AH = 0, IPSEC_PROTOCOL_ESP = 1 } |
enum | ipsec_sad_flags_t_ { foreach_ipsec_sa_flags } |
Variables | |
foreach_ipsec_sa_flags vlib_combined_counter_main_t | ipsec_sa_counters |
SA packet & bytes counters. More... | |
#define foreach_ipsec_crypto_alg |
Definition at line 24 of file ipsec_sa.h.
#define foreach_ipsec_integ_alg |
Definition at line 51 of file ipsec_sa.h.
#define foreach_ipsec_sa_flags |
Definition at line 91 of file ipsec_sa.h.
#define IPSEC_CRYPTO_ALG_IS_GCM | ( | _alg | ) |
Definition at line 46 of file ipsec_sa.h.
#define IPSEC_KEY_MAX_LEN 128 |
Definition at line 76 of file ipsec_sa.h.
#define IPSEC_N_PROTOCOLS (IPSEC_PROTOCOL_ESP+1) |
Definition at line 74 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE (64) |
Definition at line 22 of file ipsec_sa.h.
typedef struct ipsec_key_t_ ipsec_key_t |
typedef enum ipsec_sad_flags_t_ ipsec_sa_flags_t |
typedef walk_rc_t(* ipsec_sa_walk_cb_t) (ipsec_sa_t *sa, void *ctx) |
Definition at line 216 of file ipsec_sa.h.
enum ipsec_crypto_alg_t |
Enumerator | |
---|---|
IPSEC_CRYPTO_N_ALG |
Definition at line 38 of file ipsec_sa.h.
enum ipsec_integ_alg_t |
Enumerator | |
---|---|
IPSEC_INTEG_N_ALG |
Definition at line 60 of file ipsec_sa.h.
enum ipsec_protocol_t |
Enumerator | |
---|---|
IPSEC_PROTOCOL_AH | |
IPSEC_PROTOCOL_ESP |
Definition at line 68 of file ipsec_sa.h.
enum ipsec_sad_flags_t_ |
Enumerator | |
---|---|
foreach_ipsec_sa_flags |
Definition at line 102 of file ipsec_sa.h.
Definition at line 77 of file ipsec_format.c.
Definition at line 109 of file ipsec_format.c.
Definition at line 230 of file ipsec_format.c.
Definition at line 267 of file ipsec_format.c.
void ipsec_mk_key | ( | ipsec_key_t * | key, |
const u8 * | data, | ||
u8 | len | ||
) |
int ipsec_sa_add | ( | u32 | id, |
u32 | spi, | ||
ipsec_protocol_t | proto, | ||
ipsec_crypto_alg_t | crypto_alg, | ||
const ipsec_key_t * | ck, | ||
ipsec_integ_alg_t | integ_alg, | ||
const ipsec_key_t * | ik, | ||
ipsec_sa_flags_t | flags, | ||
u32 | tx_table_id, | ||
u32 | salt, | ||
const ip46_address_t * | tunnel_src_addr, | ||
const ip46_address_t * | tunnel_dst_addr, | ||
u32 * | sa_index | ||
) |
Definition at line 123 of file ipsec_sa.c.
|
inlinestatic |
|
inlinestatic |
Definition at line 254 of file ipsec_sa.c.
void ipsec_sa_set_crypto_alg | ( | ipsec_sa_t * | sa, |
ipsec_crypto_alg_t | crypto_alg | ||
) |
void ipsec_sa_set_integ_alg | ( | ipsec_sa_t * | sa, |
ipsec_integ_alg_t | integ_alg | ||
) |
void ipsec_sa_walk | ( | ipsec_sa_walk_cb_t | cd, |
void * | ctx | ||
) |
Definition at line 373 of file ipsec_sa.c.
int ipsec_set_sa_key | ( | u32 | id, |
const ipsec_key_t * | ck, | ||
const ipsec_key_t * | ik | ||
) |
Definition at line 321 of file ipsec_sa.c.
STATIC_ASSERT | ( | sizeof(ipsec_sa_flags_t) | = =1 , |
"IPSEC SA | flags, | ||
1 byte" | |||
) |
STATIC_ASSERT_OFFSET_OF | ( | ipsec_sa_t | , |
cacheline1 | , | ||
CLIB_CACHE_LINE_BYTES | |||
) |
uword unformat_ipsec_crypto_alg | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
uword unformat_ipsec_integ_alg | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
uword unformat_ipsec_key | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 238 of file ipsec_format.c.
foreach_ipsec_sa_flags vlib_combined_counter_main_t ipsec_sa_counters |
SA packet & bytes counters.
Definition at line 25 of file ipsec_sa.c.