FD.io VPP
v20.09-64-g4f7b92f0a
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_UDP_PORT_NONE ((u16)~0) |
#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 23 of file ipsec_sa.h.
#define foreach_ipsec_integ_alg |
Definition at line 50 of file ipsec_sa.h.
#define foreach_ipsec_sa_flags |
Definition at line 88 of file ipsec_sa.h.
#define IPSEC_CRYPTO_ALG_IS_GCM | ( | _alg | ) |
Definition at line 45 of file ipsec_sa.h.
#define IPSEC_KEY_MAX_LEN 128 |
Definition at line 73 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 291 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_MAX_INDEX (IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE-1) |
Definition at line 284 of file ipsec_sa.h.
#define IPSEC_SA_ANTI_REPLAY_WINDOW_SIZE (64) |
Definition at line 283 of file ipsec_sa.h.
#define IPSEC_UDP_PORT_NONE ((u16)~0) |
Definition at line 277 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 264 of file ipsec_sa.h.
enum ipsec_crypto_alg_t |
Enumerator | |
---|---|
IPSEC_CRYPTO_N_ALG |
Definition at line 37 of file ipsec_sa.h.
enum ipsec_integ_alg_t |
Enumerator | |
---|---|
IPSEC_INTEG_N_ALG |
Definition at line 59 of file ipsec_sa.h.
enum ipsec_protocol_t |
Enumerator | |
---|---|
IPSEC_PROTOCOL_AH | |
IPSEC_PROTOCOL_ESP |
Definition at line 67 of file ipsec_sa.h.
enum ipsec_sad_flags_t_ |
Enumerator | |
---|---|
foreach_ipsec_sa_flags |
Definition at line 99 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, | ||
u16 | src_port, | ||
u16 | dst_port | ||
) |
Definition at line 170 of file ipsec_sa.c.
|
inlinestatic |
|
inlinestatic |
Definition at line 490 of file ipsec_sa.h.
void ipsec_sa_clear | ( | index_t | sai | ) |
Definition at line 444 of file ipsec_sa.c.
Definition at line 409 of file ipsec_sa.c.
void ipsec_sa_lock | ( | index_t | sai | ) |
Definition at line 395 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 381 of file ipsec_sa.c.
int ipsec_sa_unlock_id | ( | u32 | id | ) |
Definition at line 428 of file ipsec_sa.c.
void ipsec_sa_walk | ( | ipsec_sa_walk_cb_t | cd, |
void * | ctx | ||
) |
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.