FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | ipsec_key_t_ |
struct | ipsec_sa_t |
Macros | |
#define | foreach_ipsec_crypto_alg |
#define | IPSEC_CRYPTO_ALG_IS_GCM(_alg) |
#define | foreach_ipsec_integ_alg |
#define | IPSEC_KEY_MAX_LEN 128 |
#define | foreach_ipsec_sa_flags |
#define | IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE (64) |
#define | IPSEC_SA_ANTI_REPLAY_WINDOW_MAX_INDEX (IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE-1) |
#define | IPSEC_SA_ANTI_REPLAY_WINDOW_LOWER_BOUND(_tl) (_tl - IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE + 1) |
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 22 of file ipsec_sa.h.
#define foreach_ipsec_integ_alg |
Definition at line 49 of file ipsec_sa.h.
#define foreach_ipsec_sa_flags |
Definition at line 87 of file ipsec_sa.h.
#define IPSEC_CRYPTO_ALG_IS_GCM | ( | _alg | ) |
Definition at line 44 of file ipsec_sa.h.
#define IPSEC_KEY_MAX_LEN 128 |
Definition at line 72 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_LOWER_BOUND | ( | _tl | ) | (_tl - IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE + 1) |
Definition at line 245 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_MAX_INDEX (IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE-1) |
Definition at line 238 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE (64) |
Definition at line 237 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 220 of file ipsec_sa.h.
enum ipsec_crypto_alg_t |
Enumerator | |
---|---|
IPSEC_CRYPTO_N_ALG |
Definition at line 36 of file ipsec_sa.h.
enum ipsec_integ_alg_t |
Enumerator | |
---|---|
IPSEC_INTEG_N_ALG |
Definition at line 58 of file ipsec_sa.h.
enum ipsec_protocol_t |
Enumerator | |
---|---|
IPSEC_PROTOCOL_AH | |
IPSEC_PROTOCOL_ESP |
Definition at line 66 of file ipsec_sa.h.
enum ipsec_sad_flags_t_ |
Enumerator | |
---|---|
foreach_ipsec_sa_flags |
Definition at line 98 of file ipsec_sa.h.
Definition at line 78 of file ipsec_format.c.
Definition at line 110 of file ipsec_format.c.
Definition at line 234 of file ipsec_format.c.
Definition at line 269 of file ipsec_format.c.
void ipsec_mk_key | ( | ipsec_key_t * | key, |
const u8 * | data, | ||
u8 | len | ||
) |
int ipsec_sa_add_and_lock | ( | 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 127 of file ipsec_sa.c.
|
inlinestatic |
|
inlinestatic |
void ipsec_sa_clear | ( | index_t | sai | ) |
Definition at line 348 of file ipsec_sa.c.
Definition at line 313 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_unlock | ( | index_t | sai | ) |
Definition at line 299 of file ipsec_sa.c.
int ipsec_sa_unlock_id | ( | u32 | id | ) |
Definition at line 332 of file ipsec_sa.c.
void ipsec_sa_walk | ( | ipsec_sa_walk_cb_t | cd, |
void * | ctx | ||
) |
Definition at line 354 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 242 of file ipsec_format.c.
foreach_ipsec_sa_flags vlib_combined_counter_main_t ipsec_sa_counters |
SA packet & bytes counters.
Definition at line 27 of file ipsec_sa.c.