FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | esp_encrypt_trace_t |
struct | esp_encrypt_post_trace_t |
struct | esp_no_crypto_trace_t |
Macros | |
#define | foreach_esp_encrypt_next |
#define | foreach_esp_encrypt_error |
Enumerations | |
enum | esp_encrypt_next_t { ESP_ENCRYPT_N_NEXT, ESP_ENCRYPT_N_NEXT } |
enum | esp_encrypt_error_t { ESP_ENCRYPT_N_ERROR, ESP_ENCRYPT_N_ERROR } |
enum | { ESP_NO_CRYPTO_NEXT_DROP, ESP_NO_CRYPTO_N_NEXT } |
enum | { ESP_NO_CRYPTO_ERROR_RX_PKTS } |
Variables | |
static char * | esp_encrypt_error_strings [] |
vlib_node_registration_t | esp4_encrypt_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_node) More... | |
vlib_node_registration_t | esp4_encrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_post_node) More... | |
vlib_node_registration_t | esp6_encrypt_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_node) More... | |
vlib_node_registration_t | esp6_encrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_post_node) More... | |
vlib_node_registration_t | esp4_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_tun_node) More... | |
vlib_node_registration_t | esp4_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_tun_post_node) More... | |
vlib_node_registration_t | esp6_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_tun_node) More... | |
vlib_node_registration_t | esp6_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_tun_post_node) More... | |
vlib_main_t * | vm |
vlib_main_t vlib_node_runtime_t * | node |
vlib_main_t vlib_node_runtime_t vlib_frame_t * | from_frame |
vlib_node_registration_t | esp_mpls_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp_mpls_encrypt_tun_node) More... | |
vlib_node_registration_t | esp_mpls_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp_mpls_encrypt_tun_post_node) More... | |
static char * | esp_no_crypto_error_strings [] |
vlib_node_registration_t | esp4_no_crypto_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_no_crypto_tun_node) More... | |
vlib_node_registration_t | esp6_no_crypto_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_no_crypto_tun_node) More... | |
#define foreach_esp_encrypt_error |
Definition at line 46 of file esp_encrypt.c.
#define foreach_esp_encrypt_next |
Definition at line 29 of file esp_encrypt.c.
anonymous enum |
Enumerator | |
---|---|
ESP_NO_CRYPTO_NEXT_DROP | |
ESP_NO_CRYPTO_N_NEXT |
Definition at line 1388 of file esp_encrypt.c.
anonymous enum |
Enumerator | |
---|---|
ESP_NO_CRYPTO_ERROR_RX_PKTS |
Definition at line 1394 of file esp_encrypt.c.
enum esp_encrypt_error_t |
Enumerator | |
---|---|
ESP_ENCRYPT_N_ERROR | |
ESP_ENCRYPT_N_ERROR |
Definition at line 55 of file esp_encrypt.c.
enum esp_encrypt_next_t |
Enumerator | |
---|---|
ESP_ENCRYPT_N_NEXT | |
ESP_ENCRYPT_N_NEXT |
Definition at line 39 of file esp_encrypt.c.
VLIB_NODE_FN() esp4_encrypt_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_encrypt_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_encrypt_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_encrypt_tun_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp4_no_crypto_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_encrypt_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_encrypt_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_encrypt_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_encrypt_tun_post_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
VLIB_NODE_FN() esp6_no_crypto_tun_node | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | from_frame | ||
) |
static_always_inline u8* esp_add_footer_and_icv | ( | vlib_main_t * | vm, |
vlib_buffer_t ** | last, | ||
u8 | esp_align, | ||
u8 | icv_sz, | ||
vlib_node_runtime_t * | node, | ||
u16 | buffer_data_size, | ||
uword | total_len | ||
) |
Definition at line 116 of file esp_encrypt.c.
static_always_inline u32 esp_encrypt_chain_crypto | ( | vlib_main_t * | vm, |
ipsec_per_thread_data_t * | ptd, | ||
ipsec_sa_t * | sa0, | ||
vlib_buffer_t * | b, | ||
vlib_buffer_t * | lb, | ||
u8 | icv_sz, | ||
u8 * | start, | ||
u32 | start_len, | ||
u16 * | n_ch | ||
) |
Definition at line 296 of file esp_encrypt.c.
static_always_inline u32 esp_encrypt_chain_integ | ( | vlib_main_t * | vm, |
ipsec_per_thread_data_t * | ptd, | ||
ipsec_sa_t * | sa0, | ||
vlib_buffer_t * | b, | ||
vlib_buffer_t * | lb, | ||
u8 | icv_sz, | ||
u8 * | start, | ||
u32 | start_len, | ||
u8 * | digest, | ||
u16 * | n_ch | ||
) |
Definition at line 333 of file esp_encrypt.c.
|
static |
|
inlinestatic |
Definition at line 565 of file esp_encrypt.c.
|
inlinestatic |
Definition at line 1049 of file esp_encrypt.c.
static_always_inline void esp_fill_udp_hdr | ( | ipsec_sa_t * | sa, |
udp_header_t * | udp, | ||
u16 | len | ||
) |
Definition at line 186 of file esp_encrypt.c.
static_always_inline u8 esp_get_ip6_hdr_len | ( | ip6_header_t * | ip6, |
ip6_ext_header_t ** | ext_hdr | ||
) |
Definition at line 211 of file esp_encrypt.c.
|
inlinestatic |
Definition at line 1404 of file esp_encrypt.c.
static_always_inline void esp_prepare_async_frame | ( | vlib_main_t * | vm, |
ipsec_per_thread_data_t * | ptd, | ||
vnet_crypto_async_frame_t * | async_frame, | ||
ipsec_sa_t * | sa, | ||
vlib_buffer_t * | b, | ||
esp_header_t * | esp, | ||
u8 * | payload, | ||
u32 | payload_len, | ||
u8 | iv_sz, | ||
u8 | icv_sz, | ||
u32 | bi, | ||
u16 | next, | ||
u32 | hdr_len, | ||
u16 | async_next, | ||
vlib_buffer_t * | lb | ||
) |
Definition at line 475 of file esp_encrypt.c.
|
inlinestatic |
Definition at line 379 of file esp_encrypt.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, | ||
u16 | drop_next | ||
) |
Definition at line 239 of file esp_encrypt.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, | ||
u16 | drop_next | ||
) |
Definition at line 268 of file esp_encrypt.c.
static_always_inline void esp_update_ip4_hdr | ( | ip4_header_t * | ip4, |
u16 | len, | ||
int | is_transport, | ||
int | is_udp | ||
) |
Definition at line 160 of file esp_encrypt.c.
static_always_inline u8 ext_hdr_is_pre_esp | ( | u8 | nexthdr | ) |
Definition at line 1377 of file esp_encrypt.c.
Definition at line 104 of file esp_encrypt.c.
vlib_node_registration_t esp4_encrypt_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_node)
Definition at line 1143 of file esp_encrypt.c.
vlib_node_registration_t esp4_encrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_post_node)
Definition at line 1171 of file esp_encrypt.c.
vlib_node_registration_t esp4_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_tun_node)
Definition at line 1233 of file esp_encrypt.c.
vlib_node_registration_t esp4_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp4_encrypt_tun_post_node)
Definition at line 1262 of file esp_encrypt.c.
vlib_node_registration_t esp4_no_crypto_tun_node |
(constructor) VLIB_REGISTER_NODE (esp4_no_crypto_tun_node)
Definition at line 1450 of file esp_encrypt.c.
vlib_node_registration_t esp6_encrypt_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_node)
Definition at line 1192 of file esp_encrypt.c.
vlib_node_registration_t esp6_encrypt_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_post_node)
Definition at line 1212 of file esp_encrypt.c.
vlib_node_registration_t esp6_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_tun_node)
Definition at line 1283 of file esp_encrypt.c.
vlib_node_registration_t esp6_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp6_encrypt_tun_post_node)
Definition at line 1314 of file esp_encrypt.c.
vlib_node_registration_t esp6_no_crypto_tun_node |
(constructor) VLIB_REGISTER_NODE (esp6_no_crypto_tun_node)
Definition at line 1471 of file esp_encrypt.c.
|
static |
Definition at line 63 of file esp_encrypt.c.
vlib_node_registration_t esp_mpls_encrypt_tun_node |
(constructor) VLIB_REGISTER_NODE (esp_mpls_encrypt_tun_node)
Definition at line 1333 of file esp_encrypt.c.
vlib_node_registration_t esp_mpls_encrypt_tun_post_node |
(constructor) VLIB_REGISTER_NODE (esp_mpls_encrypt_tun_post_node)
Definition at line 1360 of file esp_encrypt.c.
|
static |
Definition at line 1399 of file esp_encrypt.c.
vlib_main_t vlib_node_runtime_t vlib_frame_t * from_frame |
Definition at line 1328 of file esp_encrypt.c.
Definition at line 1327 of file esp_encrypt.c.
vlib_main_t* vm |
Definition at line 1327 of file esp_encrypt.c.