FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | ikev2_auth_t |
struct | ikev2_sa_transform_t |
struct | ikev2_sa_proposal_t |
struct | ikev2_ts_t |
struct | ikev2_responder_t |
struct | ikev2_transforms_set |
struct | ikev2_id_t |
struct | ikev2_child_sa_t |
struct | ikev2_delete_t |
struct | ikev2_rekey_t |
struct | ikev2_notify_t |
struct | ikev2_profile_t |
struct | ikev2_stats_t |
struct | ikev2_sa_t |
struct | ikev2_main_per_thread_data_t |
struct | ikev2_main_t |
struct | ikev2_payload_chain_t |
Macros | |
#define | foreach_ikev2_log_level |
#define | ikev2_elog_sa_state(_format, _ispi) |
#define | ikev2_elog_exchange_internal(_format, _ispi, _rspi, _addr) |
#define | IKE_ELOG_IP4_FMT "%d.%d.%d.%d" |
#define | IKE_ELOG_IP6_FMT "[v6]:%x%x:%x%x" |
#define | ikev2_elog_exchange(_fmt, _ispi, _rspi, _addr, _v4) |
#define | ikev2_elog_uint(_level, _format, _val) |
#define | ikev2_elog_uint_peers(_level, _format, _val, _ip1, _ip2) |
#define | ikev2_elog_error(_msg) _ikev2_elog(IKEV2_LOG_ERROR, "[error] " _msg) |
#define | ikev2_elog_warning(_msg) _ikev2_elog(IKEV2_LOG_WARNING, "[warning] " _msg) |
#define | ikev2_elog_debug(_msg) _ikev2_elog(IKEV2_LOG_DEBUG, "[debug] " _msg) |
#define | ikev2_elog_detail(_msg) _ikev2_elog(IKEV2_LOG_DETAIL, "[detail] " _msg) |
#define | ikev2_log_error(...) vlib_log(VLIB_LOG_LEVEL_ERR, ikev2_main.log_class, __VA_ARGS__) |
#define | ikev2_log_warning(...) vlib_log(VLIB_LOG_LEVEL_WARNING, ikev2_main.log_class, __VA_ARGS__) |
#define | ikev2_log_debug(...) vlib_log(VLIB_LOG_LEVEL_DEBUG, ikev2_main.log_class, __VA_ARGS__) |
#define | ikev2_natt_active(_sa) ((_sa)->natt_state == IKEV2_NATT_ACTIVE) |
#define | ikev2_payload_new_chain(V) vec_validate (V, 0) |
#define | ikev2_payload_destroy_chain(V) |
Typedefs | |
typedef enum ikev2_log_level_t_ | ikev2_log_level_t |
Variables | |
ikev2_main_t | ikev2_main |
#define foreach_ikev2_log_level |
Definition at line 33 of file ikev2_priv.h.
#define IKE_ELOG_IP4_FMT "%d.%d.%d.%d" |
Definition at line 113 of file ikev2_priv.h.
#define IKE_ELOG_IP6_FMT "[v6]:%x%x:%x%x" |
Definition at line 114 of file ikev2_priv.h.
#define ikev2_elog_debug | ( | _msg | ) | _ikev2_elog(IKEV2_LOG_DEBUG, "[debug] " _msg) |
Definition at line 174 of file ikev2_priv.h.
#define ikev2_elog_detail | ( | _msg | ) | _ikev2_elog(IKEV2_LOG_DETAIL, "[detail] " _msg) |
Definition at line 176 of file ikev2_priv.h.
#define ikev2_elog_error | ( | _msg | ) | _ikev2_elog(IKEV2_LOG_ERROR, "[error] " _msg) |
Definition at line 170 of file ikev2_priv.h.
#define ikev2_elog_exchange | ( | _fmt, | |
_ispi, | |||
_rspi, | |||
_addr, | |||
_v4 | |||
) |
Definition at line 116 of file ikev2_priv.h.
#define ikev2_elog_exchange_internal | ( | _format, | |
_ispi, | |||
_rspi, | |||
_addr | |||
) |
Definition at line 84 of file ikev2_priv.h.
#define ikev2_elog_sa_state | ( | _format, | |
_ispi | |||
) |
Definition at line 65 of file ikev2_priv.h.
#define ikev2_elog_uint | ( | _level, | |
_format, | |||
_val | |||
) |
Definition at line 124 of file ikev2_priv.h.
#define ikev2_elog_uint_peers | ( | _level, | |
_format, | |||
_val, | |||
_ip1, | |||
_ip2 | |||
) |
Definition at line 143 of file ikev2_priv.h.
#define ikev2_elog_warning | ( | _msg | ) | _ikev2_elog(IKEV2_LOG_WARNING, "[warning] " _msg) |
Definition at line 172 of file ikev2_priv.h.
#define ikev2_log_debug | ( | ... | ) | vlib_log(VLIB_LOG_LEVEL_DEBUG, ikev2_main.log_class, __VA_ARGS__) |
Definition at line 184 of file ikev2_priv.h.
#define ikev2_log_error | ( | ... | ) | vlib_log(VLIB_LOG_LEVEL_ERR, ikev2_main.log_class, __VA_ARGS__) |
Definition at line 180 of file ikev2_priv.h.
#define ikev2_log_warning | ( | ... | ) | vlib_log(VLIB_LOG_LEVEL_WARNING, ikev2_main.log_class, __VA_ARGS__) |
Definition at line 182 of file ikev2_priv.h.
#define ikev2_natt_active | ( | _sa | ) | ((_sa)->natt_state == IKEV2_NATT_ACTIVE) |
Definition at line 368 of file ikev2_priv.h.
#define ikev2_payload_destroy_chain | ( | V | ) |
Definition at line 578 of file ikev2_priv.h.
#define ikev2_payload_new_chain | ( | V | ) | vec_validate (V, 0) |
Definition at line 577 of file ikev2_priv.h.
typedef enum ikev2_log_level_t_ ikev2_log_level_t |
enum ikev2_dh_group_t |
Enumerator | |
---|---|
IKEV2_DH_GROUP_MODP | |
IKEV2_DH_GROUP_ECP |
Definition at line 207 of file ikev2_priv.h.
enum ikev2_log_level_t_ |
Enumerator | |
---|---|
IKEV2_LOG_MAX |
Definition at line 42 of file ikev2_priv.h.
enum ikev2_natt_state_t |
Enumerator | |
---|---|
IKEV2_NATT_ENABLED | |
IKEV2_NATT_DISABLED | |
IKEV2_NATT_ACTIVE |
Definition at line 355 of file ikev2_priv.h.
enum ikev2_state_t |
Definition at line 187 of file ikev2_priv.h.
v8* ikev2_calc_integr | ( | ikev2_sa_transform_t * | tr, |
v8 * | key, | ||
u8 * | data, | ||
int | len | ||
) |
Definition at line 314 of file ikev2_crypto.c.
v8* ikev2_calc_prf | ( | ikev2_sa_transform_t * | tr, |
v8 * | key, | ||
v8 * | data | ||
) |
Definition at line 255 of file ikev2_crypto.c.
u8* ikev2_calc_prfplus | ( | ikev2_sa_transform_t * | tr, |
u8 * | key, | ||
u8 * | seed, | ||
int | len | ||
) |
Definition at line 272 of file ikev2_crypto.c.
void ikev2_complete_dh | ( | ikev2_sa_t * | sa, |
ikev2_sa_transform_t * | t | ||
) |
void ikev2_crypto_init | ( | ikev2_main_t * | km | ) |
int ikev2_decrypt_aead_data | ( | ikev2_main_per_thread_data_t * | ptd, |
ikev2_sa_t * | sa, | ||
ikev2_sa_transform_t * | tr_encr, | ||
u8 * | data, | ||
int | data_len, | ||
u8 * | aad, | ||
u32 | aad_len, | ||
u8 * | tag, | ||
u32 * | out_len | ||
) |
Definition at line 351 of file ikev2_crypto.c.
int ikev2_decrypt_data | ( | ikev2_main_per_thread_data_t * | ptd, |
ikev2_sa_t * | sa, | ||
ikev2_sa_transform_t * | tr_encr, | ||
u8 * | data, | ||
int | len, | ||
u32 * | out_len | ||
) |
void ikev2_disable_dpd | ( | void | ) |
int ikev2_encrypt_aead_data | ( | ikev2_main_per_thread_data_t * | ptd, |
ikev2_sa_t * | sa, | ||
ikev2_sa_transform_t * | tr_encr, | ||
v8 * | src, | ||
u8 * | dst, | ||
u8 * | aad, | ||
u32 | aad_len, | ||
u8 * | tag | ||
) |
Definition at line 422 of file ikev2_crypto.c.
int ikev2_encrypt_data | ( | ikev2_main_per_thread_data_t * | ptd, |
ikev2_sa_t * | sa, | ||
ikev2_sa_transform_t * | tr_encr, | ||
v8 * | src, | ||
u8 * | dst | ||
) |
Definition at line 592 of file ikev2_payload.c.
void ikev2_generate_dh | ( | ikev2_sa_t * | sa, |
ikev2_sa_transform_t * | t | ||
) |
Definition at line 498 of file ikev2_crypto.c.
static_always_inline ikev2_main_per_thread_data_t* ikev2_get_per_thread_data | ( | ) |
Definition at line 613 of file ikev2_priv.h.
EVP_PKEY* ikev2_load_cert_file | ( | u8 * | file | ) |
EVP_PKEY* ikev2_load_key_file | ( | u8 * | file | ) |
ikev2_delete_t* ikev2_parse_delete_payload | ( | ike_payload_header_t * | ikep, |
u32 | rlen | ||
) |
ikev2_notify_t* ikev2_parse_notify_payload | ( | ike_payload_header_t * | ikep, |
u32 | rlen | ||
) |
Definition at line 505 of file ikev2_payload.c.
ikev2_sa_proposal_t* ikev2_parse_sa_payload | ( | ike_payload_header_t * | ikep, |
u32 | rlen | ||
) |
Definition at line 365 of file ikev2_payload.c.
ikev2_ts_t* ikev2_parse_ts_payload | ( | ike_payload_header_t * | ikep, |
u32 | rlen | ||
) |
Definition at line 447 of file ikev2_payload.c.
void ikev2_parse_vendor_payload | ( | ike_payload_header_t * | ikep | ) |
void ikev2_payload_add_auth | ( | ikev2_payload_chain_t * | c, |
ikev2_auth_t * | auth | ||
) |
Definition at line 286 of file ikev2_payload.c.
void ikev2_payload_add_delete | ( | ikev2_payload_chain_t * | c, |
ikev2_delete_t * | d | ||
) |
Definition at line 255 of file ikev2_payload.c.
void ikev2_payload_add_id | ( | ikev2_payload_chain_t * | c, |
ikev2_id_t * | id, | ||
u8 | type | ||
) |
Definition at line 243 of file ikev2_payload.c.
void ikev2_payload_add_ke | ( | ikev2_payload_chain_t * | c, |
u16 | dh_group, | ||
u8 * | dh_data | ||
) |
Definition at line 224 of file ikev2_payload.c.
void ikev2_payload_add_nonce | ( | ikev2_payload_chain_t * | c, |
u8 * | nonce | ||
) |
Definition at line 235 of file ikev2_payload.c.
void ikev2_payload_add_notify | ( | ikev2_payload_chain_t * | c, |
u16 | msg_type, | ||
u8 * | data | ||
) |
Definition at line 142 of file ikev2_payload.c.
void ikev2_payload_add_notify_2 | ( | ikev2_payload_chain_t * | c, |
u16 | msg_type, | ||
u8 * | data, | ||
ikev2_notify_t * | notify | ||
) |
Definition at line 148 of file ikev2_payload.c.
void ikev2_payload_add_sa | ( | ikev2_payload_chain_t * | c, |
ikev2_sa_proposal_t * | proposals | ||
) |
Definition at line 170 of file ikev2_payload.c.
void ikev2_payload_add_ts | ( | ikev2_payload_chain_t * | c, |
ikev2_ts_t * | ts, | ||
u8 | type | ||
) |
Definition at line 333 of file ikev2_payload.c.
void ikev2_payload_chain_add_padding | ( | ikev2_payload_chain_t * | c, |
int | bs | ||
) |
clib_error_t* ikev2_profile_natt_disable | ( | u8 * | name | ) |
void ikev2_sa_free_proposal_vector | ( | ikev2_sa_proposal_t ** | v | ) |
ikev2_sa_transform_t* ikev2_sa_get_td_for_type | ( | ikev2_sa_proposal_t * | p, |
ikev2_transform_type_t | type | ||
) |
int ikev2_set_log_level | ( | ikev2_log_level_t | log_level | ) |
ikev2_main_t ikev2_main |