FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
ipsec.c File Reference
+ Include dependency graph for ipsec.c:

Go to the source code of this file.

Functions

static clib_error_tipsec_check_ah_support (ipsec_sa_t *sa)
 
static clib_error_tipsec_check_esp_support (ipsec_sa_t *sa)
 
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 void ipsec_add_node (vlib_main_t *vm, const char *node_name, const char *prev_node_name, u32 *out_node_index, u32 *out_next_index)
 
static void ipsec_add_feature (const char *arc_name, const char *node_name, u32 *out_feature_index)
 
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_node_tun_name, const char *esp4_decrypt_node_name, const char *esp6_encrypt_node_name, const char *esp6_encrypt_node_tun_name, const char *esp6_decrypt_node_name, check_support_cb_t esp_check_support_cb, add_del_sa_sess_cb_t esp_add_del_sa_sess_cb)
 
clib_error_tipsec_rsc_in_use (ipsec_main_t *im)
 
int ipsec_select_ah_backend (ipsec_main_t *im, u32 backend_idx)
 
int ipsec_select_esp_backend (ipsec_main_t *im, u32 backend_idx)
 
static clib_error_tipsec_init (vlib_main_t *vm)
 

Variables

ipsec_main_t ipsec_main
 

Function Documentation

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

Definition at line 45 of file ipsec.c.

+ Here is the caller graph for this function:

static void ipsec_add_feature ( const char *  arc_name,
const char *  node_name,
u32 out_feature_index 
)
static

Definition at line 104 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ipsec_add_node ( vlib_main_t vm,
const char *  node_name,
const char *  prev_node_name,
u32 out_node_index,
u32 out_next_index 
)
static

Definition at line 90 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ipsec_check_ah_support ( ipsec_sa_t sa)
static

Definition at line 31 of file ipsec.c.

+ Here is the caller graph for this function:

static clib_error_t* ipsec_check_esp_support ( ipsec_sa_t sa)
static

Definition at line 39 of file ipsec.c.

+ Here is the caller graph for this function:

clib_error_t* ipsec_check_support_cb ( ipsec_main_t im,
ipsec_sa_t sa 
)

Definition at line 67 of file ipsec.c.

+ Here is the caller graph for this function:

static clib_error_t* ipsec_init ( vlib_main_t vm)
static

Definition at line 244 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 114 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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_node_tun_name,
const char *  esp4_decrypt_node_name,
const char *  esp6_encrypt_node_name,
const char *  esp6_encrypt_node_tun_name,
const char *  esp6_decrypt_node_name,
check_support_cb_t  esp_check_support_cb,
add_del_sa_sess_cb_t  esp_add_del_sa_sess_cb 
)

Definition at line 142 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* ipsec_rsc_in_use ( ipsec_main_t im)

Definition at line 178 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ipsec_select_ah_backend ( ipsec_main_t im,
u32  backend_idx 
)

Definition at line 195 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ipsec_select_esp_backend ( ipsec_main_t im,
u32  backend_idx 
)

Definition at line 218 of file ipsec.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

ipsec_main_t ipsec_main

Definition at line 28 of file ipsec.c.