FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | esp_decrypt_trace_t |
Macros | |
#define | foreach_esp_decrypt_next |
#define | foreach_esp_decrypt_post_next |
#define | foreach_esp_decrypt_error |
#define | ESP_ENCRYPT_PD_F_FD_TRANSPORT (1 << 2) |
Enumerations | |
enum | esp_decrypt_next_t { ESP_DECRYPT_N_NEXT, ESP_DECRYPT_N_NEXT } |
enum | esp_decrypt_post_next_t { ESP_DECRYPT_POST_N_NEXT } |
enum | esp_decrypt_error_t { ESP_DECRYPT_N_ERROR, ESP_DECRYPT_N_ERROR } |
Variables | |
static char * | esp_decrypt_error_strings [] |
vlib_node_registration_t | esp_decrypt_pending_node |
(constructor) VLIB_REGISTER_NODE (esp_decrypt_pending_node) More... | |
vlib_node_registration_t | esp4_decrypt_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_node) More... | |
vlib_node_registration_t | esp4_decrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_post_node) More... | |
vlib_node_registration_t | esp6_decrypt_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_node) More... | |
vlib_node_registration_t | esp6_decrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_post_node) More... | |
vlib_node_registration_t | esp4_decrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_node) More... | |
vlib_node_registration_t | esp4_decrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_post_node) More... | |
vlib_node_registration_t | esp6_decrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_node) More... | |
vlib_node_registration_t | esp6_decrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_post_node) More... | |
#define ESP_ENCRYPT_PD_F_FD_TRANSPORT (1 << 2) |
Definition at line 114 of file esp_decrypt.c.
#define foreach_esp_decrypt_error |
Definition at line 60 of file esp_decrypt.c.
#define foreach_esp_decrypt_next |
Definition at line 30 of file esp_decrypt.c.
#define foreach_esp_decrypt_post_next |
Definition at line 46 of file esp_decrypt.c.
enum esp_decrypt_error_t |
Enumerator | |
---|---|
ESP_DECRYPT_N_ERROR | |
ESP_DECRYPT_N_ERROR |
Definition at line 75 of file esp_decrypt.c.
enum esp_decrypt_next_t |
Enumerator | |
---|---|
ESP_DECRYPT_N_NEXT | |
ESP_DECRYPT_N_NEXT |
Definition at line 39 of file esp_decrypt.c.
Enumerator | |
---|---|
ESP_DECRYPT_POST_N_NEXT |
Definition at line 53 of file esp_decrypt.c.
VLIB_NODE_FN() esp4_decrypt_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_decrypt_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_decrypt_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_decrypt_tun_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_decrypt_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_decrypt_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_decrypt_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_decrypt_tun_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
static_always_inline void esp_async_recycle_failed_submit | ( | vnet_crypto_async_frame_t * | f, |
vlib_buffer_t ** | b, | ||
u16 * | next | ||
) |
Definition at line 1017 of file esp_decrypt.c.
static_always_inline u32 esp_decrypt_chain_crypto | ( | vlib_main_t * | vm, |
ipsec_per_thread_data_t * | ptd, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
ipsec_sa_t * | sa0, | ||
vlib_buffer_t * | b, | ||
u8 | icv_sz, | ||
u8 * | start, | ||
u32 | start_len, | ||
u8 ** | tag, | ||
u16 * | n_ch | ||
) |
Definition at line 401 of file esp_decrypt.c.
static_always_inline int esp_decrypt_chain_integ | ( | vlib_main_t * | vm, |
ipsec_per_thread_data_t * | ptd, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
ipsec_sa_t * | sa0, | ||
vlib_buffer_t * | b, | ||
u8 | icv_sz, | ||
u8 * | start_src, | ||
u32 | start_len, | ||
u8 ** | digest, | ||
u16 * | n_ch, | ||
u32 * | integ_total_len | ||
) |
Definition at line 305 of file esp_decrypt.c.
|
inlinestatic |
Definition at line 1030 of file esp_decrypt.c.
VLIB_NODE_FN() esp_decrypt_pending_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
Definition at line 1426 of file esp_decrypt.c.
static_always_inline void esp_decrypt_post_crypto | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
esp_decrypt_packet_data_t * | pd, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
vlib_buffer_t * | b, | ||
u16 * | next, | ||
int | is_ip6, | ||
int | is_tun, | ||
int | is_async | ||
) |
Definition at line 753 of file esp_decrypt.c.
|
inlinestatic |
Definition at line 1304 of file esp_decrypt.c.
static_always_inline int esp_decrypt_prepare_async_frame | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
ipsec_per_thread_data_t * | ptd, | ||
vnet_crypto_async_frame_t ** | f, | ||
ipsec_sa_t * | sa0, | ||
u8 * | payload, | ||
u16 | len, | ||
u8 | icv_sz, | ||
u8 | iv_sz, | ||
esp_decrypt_packet_data_t * | pd, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
u32 | bi, | ||
vlib_buffer_t * | b, | ||
u16 * | next, | ||
u16 | async_next | ||
) |
Definition at line 610 of file esp_decrypt.c.
static_always_inline void esp_decrypt_prepare_sync_op | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
ipsec_per_thread_data_t * | ptd, | ||
vnet_crypto_op_t *** | crypto_ops, | ||
vnet_crypto_op_t *** | integ_ops, | ||
vnet_crypto_op_t * | op, | ||
ipsec_sa_t * | sa0, | ||
u8 * | payload, | ||
u16 | len, | ||
u8 | icv_sz, | ||
u8 | iv_sz, | ||
esp_decrypt_packet_data_t * | pd, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
vlib_buffer_t * | b, | ||
u16 * | next, | ||
u32 | index | ||
) |
Definition at line 473 of file esp_decrypt.c.
static_always_inline i16 esp_insert_esn | ( | vlib_main_t * | vm, |
ipsec_sa_t * | sa, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
u32 * | data_len, | ||
u8 ** | digest, | ||
u16 * | len, | ||
vlib_buffer_t * | b, | ||
u8 * | payload | ||
) |
Definition at line 235 of file esp_decrypt.c.
static_always_inline u8* esp_move_icv | ( | vlib_main_t * | vm, |
vlib_buffer_t * | first, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
u16 | icv_sz, | ||
u16 * | dif | ||
) |
Definition at line 205 of file esp_decrypt.c.
static_always_inline u8* esp_move_icv_esn | ( | vlib_main_t * | vm, |
vlib_buffer_t * | first, | ||
esp_decrypt_packet_data2_t * | pd2, | ||
u16 | icv_sz, | ||
ipsec_sa_t * | sa, | ||
u8 * | extra_esn, | ||
u32 * | len | ||
) |
Definition at line 271 of file esp_decrypt.c.
static_always_inline void esp_process_chained_ops | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vnet_crypto_op_t * | ops, | ||
vlib_buffer_t * | b[], | ||
u16 * | nexts, | ||
vnet_crypto_op_chunk_t * | chunks, | ||
int | e | ||
) |
Definition at line 148 of file esp_decrypt.c.
static_always_inline void esp_process_ops | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vnet_crypto_op_t * | ops, | ||
vlib_buffer_t * | b[], | ||
u16 * | nexts, | ||
int | e | ||
) |
Definition at line 117 of file esp_decrypt.c.
|
inlinestatic |
Definition at line 180 of file esp_decrypt.c.
vlib_node_registration_t esp4_decrypt_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_node)
Definition at line 1444 of file esp_decrypt.c.
vlib_node_registration_t esp4_decrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_post_node)
Definition at line 1464 of file esp_decrypt.c.
vlib_node_registration_t esp4_decrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_node)
Definition at line 1508 of file esp_decrypt.c.
vlib_node_registration_t esp4_decrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_decrypt_tun_post_node)
Definition at line 1526 of file esp_decrypt.c.
vlib_node_registration_t esp6_decrypt_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_node)
Definition at line 1476 of file esp_decrypt.c.
vlib_node_registration_t esp6_decrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_post_node)
Definition at line 1496 of file esp_decrypt.c.
vlib_node_registration_t esp6_decrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_node)
Definition at line 1538 of file esp_decrypt.c.
vlib_node_registration_t esp6_decrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_decrypt_tun_post_node)
Definition at line 1556 of file esp_decrypt.c.
|
static |
Definition at line 83 of file esp_decrypt.c.
vlib_node_registration_t esp_decrypt_pending_node |
(constructor) VLIB_REGISTER_NODE (esp_decrypt_pending_node)
Definition at line 1434 of file esp_decrypt.c.