FD.io VPP  v19.04.4-rc0-5-ge88582fac
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 enum ipsec_format_flags_t_ ipsec_format_flags_t
 

Enumerations

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

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)
 
u8format_ipsec_replay_window (u8 *s, va_list *args)
 
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 *esp6_encrypt_node_name, const char *esp6_encrypt_tun_node_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)
 
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)
 
static ipsec_sa_tipsec_sa_get (u32 sa_index)
 

Variables

ipsec_main_t ipsec_main
 
vlib_node_registration_t esp4_encrypt_node
 (constructor) VLIB_REGISTER_NODE (esp4_encrypt_node) More...
 
vlib_node_registration_t esp4_decrypt_node
 (constructor) VLIB_REGISTER_NODE (esp4_decrypt_node) More...
 
vlib_node_registration_t ah4_encrypt_node
 (constructor) VLIB_REGISTER_NODE (ah4_encrypt_node) More...
 
vlib_node_registration_t ah4_decrypt_node
 (constructor) VLIB_REGISTER_NODE (ah4_decrypt_node) More...
 
vlib_node_registration_t esp6_encrypt_node
 (constructor) VLIB_REGISTER_NODE (esp6_encrypt_node) More...
 
vlib_node_registration_t esp6_decrypt_node
 (constructor) VLIB_REGISTER_NODE (esp6_decrypt_node) More...
 
vlib_node_registration_t ah6_encrypt_node
 (constructor) VLIB_REGISTER_NODE (ah6_encrypt_node) More...
 
vlib_node_registration_t ah6_decrypt_node
 (constructor) VLIB_REGISTER_NODE (ah6_decrypt_node) More...
 
vlib_node_registration_t ipsec4_if_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec4_if_input_node) More...
 
vlib_node_registration_t ipsec6_if_input_node
 (constructor) VLIB_REGISTER_NODE (ipsec6_if_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 30 of file ipsec.h.

◆ check_support_cb_t

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

Definition at line 31 of file ipsec.h.

◆ ipsec_format_flags_t

Enumeration Type Documentation

◆ ipsec_format_flags_t_

Enumerator
IPSEC_FORMAT_BRIEF 
IPSEC_FORMAT_DETAIL 

Definition at line 164 of file ipsec.h.

Function Documentation

◆ format_ipsec_replay_window()

u8* format_ipsec_replay_window ( u8 s,
va_list *  args 
)

Definition at line 141 of file ipsec_format.c.

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

◆ 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 198 of file ipsec.h.

+ Here is the call 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 45 of file ipsec.c.

+ Here is the caller graph for this function:

◆ ipsec_check_support_cb()

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:

◆ 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 114 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 *  esp6_encrypt_node_name,
const char *  esp6_encrypt_tun_node_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:

◆ ipsec_rsc_in_use()

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:

◆ ipsec_sa_get()

static ipsec_sa_t* ipsec_sa_get ( u32  sa_index)
inlinestatic

Definition at line 235 of file ipsec.h.

+ 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 195 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 218 of file ipsec.c.

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

Variable Documentation

◆ ah4_decrypt_node

vlib_node_registration_t ah4_decrypt_node

(constructor) VLIB_REGISTER_NODE (ah4_decrypt_node)

Definition at line 294 of file ah_decrypt.c.

◆ ah4_encrypt_node

vlib_node_registration_t ah4_encrypt_node

(constructor) VLIB_REGISTER_NODE (ah4_encrypt_node)

Definition at line 326 of file ah_encrypt.c.

◆ ah6_decrypt_node

vlib_node_registration_t ah6_decrypt_node

(constructor) VLIB_REGISTER_NODE (ah6_decrypt_node)

Definition at line 320 of file ah_decrypt.c.

◆ ah6_encrypt_node

vlib_node_registration_t ah6_encrypt_node

(constructor) VLIB_REGISTER_NODE (ah6_encrypt_node)

Definition at line 352 of file ah_encrypt.c.

◆ esp4_decrypt_node

vlib_node_registration_t esp4_decrypt_node

(constructor) VLIB_REGISTER_NODE (esp4_decrypt_node)

Definition at line 479 of file esp_decrypt.c.

◆ esp4_encrypt_node

vlib_node_registration_t esp4_encrypt_node

(constructor) VLIB_REGISTER_NODE (esp4_encrypt_node)

Definition at line 529 of file esp_encrypt.c.

◆ esp6_decrypt_node

vlib_node_registration_t esp6_decrypt_node

(constructor) VLIB_REGISTER_NODE (esp6_decrypt_node)

Definition at line 505 of file esp_decrypt.c.

◆ esp6_encrypt_node

vlib_node_registration_t esp6_encrypt_node

(constructor) VLIB_REGISTER_NODE (esp6_encrypt_node)

Definition at line 555 of file esp_encrypt.c.

◆ ipsec4_if_input_node

vlib_node_registration_t ipsec4_if_input_node

(constructor) VLIB_REGISTER_NODE (ipsec4_if_input_node)

Definition at line 618 of file ipsec_if_in.c.

◆ ipsec6_if_input_node

vlib_node_registration_t ipsec6_if_input_node

(constructor) VLIB_REGISTER_NODE (ipsec6_if_input_node)

Definition at line 637 of file ipsec_if_in.c.

◆ ipsec_main

ipsec_main_t ipsec_main

Definition at line 28 of file ipsec.c.