FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ipsec.h File Reference
+ Include dependency graph for ipsec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipsec_ah_backend_t
 
struct  ipsec_esp_backend_t
 
struct  ipsec_main_crypto_alg_t
 
struct  ipsec_main_integ_alg_t
 
struct  ipsec_per_thread_data_t
 
struct  ipsec_main_t
 

Typedefs

typedef clib_error_t *(* add_del_sa_sess_cb_t) (u32 sa_index, u8 is_add)
 
typedef clib_error_t *(* check_support_cb_t) (ipsec_sa_t *sa)
 
typedef clib_error_t *(* enable_disable_cb_t) (int is_enable)
 
typedef enum ipsec_format_flags_t_ ipsec_format_flags_t
 

Enumerations

enum  ipsec_format_flags_t_ { IPSEC_FORMAT_BRIEF = 0, IPSEC_FORMAT_DETAIL = (1 << 0), IPSEC_FORMAT_INSECURE = (1 << 1) }
 

Functions

clib_error_tipsec_add_del_sa_sess_cb (ipsec_main_t *im, u32 sa_index, u8 is_add)
 
clib_error_tipsec_check_support_cb (ipsec_main_t *im, ipsec_sa_t *sa)
 
static_always_inline u32 get_next_output_feature_node_index (vlib_buffer_t *b, vlib_node_runtime_t *nr)
 
u32 ipsec_register_ah_backend (vlib_main_t *vm, ipsec_main_t *im, const char *name, const char *ah4_encrypt_node_name, const char *ah4_decrypt_node_name, const char *ah6_encrypt_node_name, const char *ah6_decrypt_node_name, check_support_cb_t ah_check_support_cb, add_del_sa_sess_cb_t ah_add_del_sa_sess_cb)
 
u32 ipsec_register_esp_backend (vlib_main_t *vm, ipsec_main_t *im, const char *name, const char *esp4_encrypt_node_name, const char *esp4_encrypt_tun_node_name, const char *esp4_decrypt_node_name, const char *esp4_decrypt_tun_node_name, const char *esp6_encrypt_node_name, const char *esp6_encrypt_tun_node_name, const char *esp6_decrypt_node_name, const char *esp6_decrypt_tun_node_name, const char *esp_mpls_encrypt_tun_node_name, check_support_cb_t esp_check_support_cb, add_del_sa_sess_cb_t esp_add_del_sa_sess_cb, enable_disable_cb_t enable_disable_cb)
 
int ipsec_select_ah_backend (ipsec_main_t *im, u32 ah_backend_idx)
 
int ipsec_select_esp_backend (ipsec_main_t *im, u32 esp_backend_idx)
 
clib_error_tipsec_rsc_in_use (ipsec_main_t *im)
 
void ipsec_set_async_mode (u32 is_enabled)
 
void ipsec_register_udp_port (u16 udp_port)
 
void ipsec_unregister_udp_port (u16 udp_port)
 

Variables

ipsec_main_t ipsec_main
 
vlib_node_registration_t ipsec4_tun_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec4_tun_input_node) More...
 
vlib_node_registration_t ipsec6_tun_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec6_tun_input_node) More...
 

Typedef Documentation

◆ add_del_sa_sess_cb_t

typedef clib_error_t*(* add_del_sa_sess_cb_t) (u32 sa_index, u8 is_add)

Definition at line 33 of file ipsec.h.

◆ check_support_cb_t

typedef clib_error_t*(* check_support_cb_t) (ipsec_sa_t *sa)

Definition at line 34 of file ipsec.h.

◆ enable_disable_cb_t

typedef clib_error_t*(* enable_disable_cb_t) (int is_enable)

Definition at line 35 of file ipsec.h.

◆ ipsec_format_flags_t

Enumeration Type Documentation

◆ ipsec_format_flags_t_

Enumerator
IPSEC_FORMAT_BRIEF 
IPSEC_FORMAT_DETAIL 
IPSEC_FORMAT_INSECURE 

Definition at line 212 of file ipsec.h.

Function Documentation

◆ get_next_output_feature_node_index()

static_always_inline u32 get_next_output_feature_node_index ( vlib_buffer_t b,
vlib_node_runtime_t nr 
)

Definition at line 238 of file ipsec.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_add_del_sa_sess_cb()

clib_error_t* ipsec_add_del_sa_sess_cb ( ipsec_main_t im,
u32  sa_index,
u8  is_add 
)

Definition at line 69 of file ipsec.c.

◆ ipsec_check_support_cb()

clib_error_t* ipsec_check_support_cb ( ipsec_main_t im,
ipsec_sa_t sa 
)

Definition at line 91 of file ipsec.c.

+ Here is the caller graph for this function:

◆ ipsec_register_ah_backend()

u32 ipsec_register_ah_backend ( vlib_main_t vm,
ipsec_main_t im,
const char *  name,
const char *  ah4_encrypt_node_name,
const char *  ah4_decrypt_node_name,
const char *  ah6_encrypt_node_name,
const char *  ah6_decrypt_node_name,
check_support_cb_t  ah_check_support_cb,
add_del_sa_sess_cb_t  ah_add_del_sa_sess_cb 
)

Definition at line 172 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_register_esp_backend()

u32 ipsec_register_esp_backend ( vlib_main_t vm,
ipsec_main_t im,
const char *  name,
const char *  esp4_encrypt_node_name,
const char *  esp4_encrypt_tun_node_name,
const char *  esp4_decrypt_node_name,
const char *  esp4_decrypt_tun_node_name,
const char *  esp6_encrypt_node_name,
const char *  esp6_encrypt_tun_node_name,
const char *  esp6_decrypt_node_name,
const char *  esp6_decrypt_tun_node_name,
const char *  esp_mpls_encrypt_tun_node_name,
check_support_cb_t  esp_check_support_cb,
add_del_sa_sess_cb_t  esp_add_del_sa_sess_cb,
enable_disable_cb_t  enable_disable_cb 
)

Definition at line 200 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_register_udp_port()

void ipsec_register_udp_port ( u16  udp_port)

Definition at line 153 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_rsc_in_use()

clib_error_t* ipsec_rsc_in_use ( ipsec_main_t im)

Definition at line 246 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_select_ah_backend()

int ipsec_select_ah_backend ( ipsec_main_t im,
u32  ah_backend_idx 
)

Definition at line 257 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_select_esp_backend()

int ipsec_select_esp_backend ( ipsec_main_t im,
u32  esp_backend_idx 
)

Definition at line 280 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_set_async_mode()

void ipsec_set_async_mode ( u32  is_enabled)

Definition at line 327 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ipsec_unregister_udp_port()

void ipsec_unregister_udp_port ( u16  udp_port)

Definition at line 128 of file ipsec.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ipsec4_tun_input_node

vlib_node_registration_t ipsec4_tun_input_node

(constructor) VLIB_REGISTER_NODE (ipsec4_tun_input_node)

Definition at line 388 of file ipsec_tun_in.c.

◆ ipsec6_tun_input_node

vlib_node_registration_t ipsec6_tun_input_node

(constructor) VLIB_REGISTER_NODE (ipsec6_tun_input_node)

Definition at line 407 of file ipsec_tun_in.c.

◆ ipsec_main

ipsec_main_t ipsec_main

Definition at line 28 of file ipsec.c.