FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
ipsec_api.c File Reference
+ Include dependency graph for ipsec_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_ipsec_spd_add_del_t_handler (vl_api_ipsec_spd_add_del_t *mp)
 
static void vl_api_ipsec_interface_add_del_spd_t_handler (vl_api_ipsec_interface_add_del_spd_t *mp)
 
static void vl_api_ipsec_spd_add_del_entry_t_handler (vl_api_ipsec_spd_add_del_entry_t *mp)
 
static void vl_api_ipsec_sad_add_del_entry_t_handler (vl_api_ipsec_sad_add_del_entry_t *mp)
 
static void send_ipsec_spds_details (ipsec_spd_t *spd, vl_api_registration_t *reg, u32 context)
 
static void vl_api_ipsec_spds_dump_t_handler (vl_api_ipsec_spds_dump_t *mp)
 
static void send_ipsec_spd_details (ipsec_policy_t *p, vl_api_registration_t *reg, u32 context)
 
static void vl_api_ipsec_spd_dump_t_handler (vl_api_ipsec_spd_dump_t *mp)
 
static void send_ipsec_spd_interface_details (vl_api_registration_t *reg, u32 spd_index, u32 sw_if_index, u32 context)
 
static void vl_api_ipsec_spd_interface_dump_t_handler (vl_api_ipsec_spd_interface_dump_t *mp)
 
static void vl_api_ipsec_sa_set_key_t_handler (vl_api_ipsec_sa_set_key_t *mp)
 
static void vl_api_ipsec_tunnel_if_add_del_t_handler (vl_api_ipsec_tunnel_if_add_del_t *mp)
 
static void send_ipsec_sa_details (ipsec_sa_t *sa, vl_api_registration_t *reg, u32 context, u32 sw_if_index)
 
static void vl_api_ipsec_sa_dump_t_handler (vl_api_ipsec_sa_dump_t *mp)
 
static void vl_api_ipsec_tunnel_if_set_key_t_handler (vl_api_ipsec_tunnel_if_set_key_t *mp)
 
static void vl_api_ipsec_tunnel_if_set_sa_t_handler (vl_api_ipsec_tunnel_if_set_sa_t *mp)
 
static void vl_api_ikev2_profile_add_del_t_handler (vl_api_ikev2_profile_add_del_t *mp)
 
static void vl_api_ikev2_profile_set_auth_t_handler (vl_api_ikev2_profile_set_auth_t *mp)
 
static void vl_api_ikev2_profile_set_id_t_handler (vl_api_ikev2_profile_set_id_t *mp)
 
static void vl_api_ikev2_profile_set_ts_t_handler (vl_api_ikev2_profile_set_ts_t *mp)
 
static void vl_api_ikev2_set_local_key_t_handler (vl_api_ikev2_set_local_key_t *mp)
 
static void vl_api_ikev2_set_responder_t_handler (vl_api_ikev2_set_responder_t *mp)
 
static void vl_api_ikev2_set_ike_transforms_t_handler (vl_api_ikev2_set_ike_transforms_t *mp)
 
static void vl_api_ikev2_set_esp_transforms_t_handler (vl_api_ikev2_set_esp_transforms_t *mp)
 
static void vl_api_ikev2_set_sa_lifetime_t_handler (vl_api_ikev2_set_sa_lifetime_t *mp)
 
static void vl_api_ikev2_initiate_sa_init_t_handler (vl_api_ikev2_initiate_sa_init_t *mp)
 
static void vl_api_ikev2_initiate_del_ike_sa_t_handler (vl_api_ikev2_initiate_del_ike_sa_t *mp)
 
static void vl_api_ikev2_initiate_del_child_sa_t_handler (vl_api_ikev2_initiate_del_child_sa_t *mp)
 
static void vl_api_ikev2_initiate_rekey_child_sa_t_handler (vl_api_ikev2_initiate_rekey_child_sa_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static void vl_api_ipsec_backend_dump_t_handler (vl_api_ipsec_backend_dump_t *mp)
 
static void vl_api_ipsec_select_backend_t_handler (vl_api_ipsec_select_backend_t *mp)
 
static clib_error_tipsec_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (ipsec_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \
_(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \
_(IPSEC_SPD_ADD_DEL_ENTRY, ipsec_spd_add_del_entry) \
_(IPSEC_SAD_ADD_DEL_ENTRY, ipsec_sad_add_del_entry) \
_(IPSEC_SA_SET_KEY, ipsec_sa_set_key) \
_(IPSEC_SA_DUMP, ipsec_sa_dump) \
_(IPSEC_SPDS_DUMP, ipsec_spds_dump) \
_(IPSEC_SPD_DUMP, ipsec_spd_dump) \
_(IPSEC_SPD_INTERFACE_DUMP, ipsec_spd_interface_dump) \
_(IPSEC_TUNNEL_IF_ADD_DEL, ipsec_tunnel_if_add_del) \
_(IPSEC_TUNNEL_IF_SET_KEY, ipsec_tunnel_if_set_key) \
_(IPSEC_TUNNEL_IF_SET_SA, ipsec_tunnel_if_set_sa) \
_(IKEV2_PROFILE_ADD_DEL, ikev2_profile_add_del) \
_(IKEV2_PROFILE_SET_AUTH, ikev2_profile_set_auth) \
_(IKEV2_PROFILE_SET_ID, ikev2_profile_set_id) \
_(IKEV2_PROFILE_SET_TS, ikev2_profile_set_ts) \
_(IKEV2_SET_LOCAL_KEY, ikev2_set_local_key) \
_(IKEV2_SET_RESPONDER, ikev2_set_responder) \
_(IKEV2_SET_IKE_TRANSFORMS, ikev2_set_ike_transforms) \
_(IKEV2_SET_ESP_TRANSFORMS, ikev2_set_esp_transforms) \
_(IKEV2_SET_SA_LIFETIME, ikev2_set_sa_lifetime) \
_(IKEV2_INITIATE_SA_INIT, ikev2_initiate_sa_init) \
_(IKEV2_INITIATE_DEL_IKE_SA, ikev2_initiate_del_ike_sa) \
_(IKEV2_INITIATE_DEL_CHILD_SA, ikev2_initiate_del_child_sa) \
_(IKEV2_INITIATE_REKEY_CHILD_SA, ikev2_initiate_rekey_child_sa) \
_(IPSEC_SELECT_BACKEND, ipsec_select_backend) \
_(IPSEC_BACKEND_DUMP, ipsec_backend_dump)
clib_error_t * ikev2_initiate_sa_init(vlib_main_t *vm, u8 *name)
Definition: ikev2.c:2918
clib_error_t * ikev2_set_local_key(vlib_main_t *vm, u8 *file)
Definition: ikev2.c:2671
clib_error_t * ikev2_initiate_rekey_child_sa(vlib_main_t *vm, u32 ispi)
Definition: ikev2.c:3253

Definition at line 51 of file ipsec_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 39 of file ipsec_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 1002 of file ipsec_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 44 of file ipsec_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 45 of file ipsec_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 35 of file ipsec_api.c.

Function Documentation

◆ ipsec_api_hookup()

static clib_error_t* ipsec_api_hookup ( vlib_main_t vm)
static

Definition at line 1101 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ send_ipsec_sa_details()

static void send_ipsec_sa_details ( ipsec_sa_t sa,
vl_api_registration_t reg,
u32  context,
u32  sw_if_index 
)
static

Definition at line 503 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ send_ipsec_spd_details()

static void send_ipsec_spd_details ( ipsec_policy_t p,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 297 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ send_ipsec_spd_interface_details()

static void send_ipsec_spd_interface_details ( vl_api_registration_t reg,
u32  spd_index,
u32  sw_if_index,
u32  context 
)
static

Definition at line 373 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ send_ipsec_spds_details()

static void send_ipsec_spds_details ( ipsec_spd_t spd,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 259 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 1007 of file ipsec_api.c.

+ Here is the caller graph for this function:

◆ vl_api_ikev2_initiate_del_child_sa_t_handler()

static void vl_api_ikev2_initiate_del_child_sa_t_handler ( vl_api_ikev2_initiate_del_child_sa_t mp)
static

Definition at line 955 of file ipsec_api.c.

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

◆ vl_api_ikev2_initiate_del_ike_sa_t_handler()

static void vl_api_ikev2_initiate_del_ike_sa_t_handler ( vl_api_ikev2_initiate_del_ike_sa_t mp)
static

Definition at line 933 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_initiate_rekey_child_sa_t_handler()

static void vl_api_ikev2_initiate_rekey_child_sa_t_handler ( vl_api_ikev2_initiate_rekey_child_sa_t mp)
static

Definition at line 976 of file ipsec_api.c.

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

◆ vl_api_ikev2_initiate_sa_init_t_handler()

static void vl_api_ikev2_initiate_sa_init_t_handler ( vl_api_ikev2_initiate_sa_init_t mp)
static

Definition at line 910 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_add_del_t_handler()

static void vl_api_ikev2_profile_add_del_t_handler ( vl_api_ikev2_profile_add_del_t mp)
static

Definition at line 693 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_set_auth_t_handler()

static void vl_api_ikev2_profile_set_auth_t_handler ( vl_api_ikev2_profile_set_auth_t mp)
static

Definition at line 715 of file ipsec_api.c.

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

◆ vl_api_ikev2_profile_set_id_t_handler()

static void vl_api_ikev2_profile_set_id_t_handler ( vl_api_ikev2_profile_set_id_t mp)
static

Definition at line 740 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_set_ts_t_handler()

static void vl_api_ikev2_profile_set_ts_t_handler ( vl_api_ikev2_profile_set_ts_t mp)
static

Definition at line 765 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_esp_transforms_t_handler()

static void vl_api_ikev2_set_esp_transforms_t_handler ( vl_api_ikev2_set_esp_transforms_t mp)
static

Definition at line 859 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_ike_transforms_t_handler()

static void vl_api_ikev2_set_ike_transforms_t_handler ( vl_api_ikev2_set_ike_transforms_t mp)
static

Definition at line 833 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_local_key_t_handler()

static void vl_api_ikev2_set_local_key_t_handler ( vl_api_ikev2_set_local_key_t mp)
static

Definition at line 788 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_responder_t_handler()

static void vl_api_ikev2_set_responder_t_handler ( vl_api_ikev2_set_responder_t mp)
static

Definition at line 808 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_sa_lifetime_t_handler()

static void vl_api_ikev2_set_sa_lifetime_t_handler ( vl_api_ikev2_set_sa_lifetime_t mp)
static

Definition at line 885 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_backend_dump_t_handler()

static void vl_api_ipsec_backend_dump_t_handler ( vl_api_ipsec_backend_dump_t mp)
static

Definition at line 1015 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_interface_add_del_spd_t_handler()

static void vl_api_ipsec_interface_add_del_spd_t_handler ( vl_api_ipsec_interface_add_del_spd_t mp)
static

Definition at line 98 of file ipsec_api.c.

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

◆ vl_api_ipsec_sa_dump_t_handler()

static void vl_api_ipsec_sa_dump_t_handler ( vl_api_ipsec_sa_dump_t mp)
static

Definition at line 571 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sa_set_key_t_handler()

static void vl_api_ipsec_sa_set_key_t_handler ( vl_api_ipsec_sa_set_key_t mp)
static

Definition at line 427 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_add_del_entry_t_handler()

static void vl_api_ipsec_sad_add_del_entry_t_handler ( vl_api_ipsec_sad_add_del_entry_t mp)
static

Definition at line 187 of file ipsec_api.c.

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

◆ vl_api_ipsec_select_backend_t_handler()

static void vl_api_ipsec_select_backend_t_handler ( vl_api_ipsec_select_backend_t mp)
static

Definition at line 1060 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_spd_add_del_entry_t_handler()

static void vl_api_ipsec_spd_add_del_entry_t_handler ( vl_api_ipsec_spd_add_del_entry_t mp)
static

Definition at line 123 of file ipsec_api.c.

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

◆ vl_api_ipsec_spd_add_del_t_handler()

static void vl_api_ipsec_spd_add_del_t_handler ( vl_api_ipsec_spd_add_del_t mp)
static

Definition at line 81 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_spd_dump_t_handler()

static void vl_api_ipsec_spd_dump_t_handler ( vl_api_ipsec_spd_dump_t mp)
static

Definition at line 339 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_spd_interface_dump_t_handler()

static void vl_api_ipsec_spd_interface_dump_t_handler ( vl_api_ipsec_spd_interface_dump_t mp)
static

Definition at line 390 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_spds_dump_t_handler()

static void vl_api_ipsec_spds_dump_t_handler ( vl_api_ipsec_spds_dump_t mp)
static

Definition at line 276 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_if_add_del_t_handler()

static void vl_api_ipsec_tunnel_if_add_del_t_handler ( vl_api_ipsec_tunnel_if_add_del_t mp)
static

Definition at line 449 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_if_set_key_t_handler()

static void vl_api_ipsec_tunnel_if_set_key_t_handler ( vl_api_ipsec_tunnel_if_set_key_t mp)
static

Definition at line 616 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_if_set_sa_t_handler()

static void vl_api_ipsec_tunnel_if_set_sa_t_handler ( vl_api_ipsec_tunnel_if_set_sa_t mp)
static

Definition at line 671 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( ipsec_api_hookup  )
+ Here is the caller graph for this function: