FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ipsec_api.c File Reference
+ Include dependency graph for ipsec_api.c:

Go to the source code of this file.

Data Structures

struct  ipsec_dump_walk_ctx_t_
 
struct  ipsec_sa_dump_match_ctx_t_
 

Macros

#define REPLY_MSG_ID_BASE   ipsec_main.msg_id_base
 

Typedefs

typedef struct ipsec_dump_walk_ctx_t_ ipsec_dump_walk_ctx_t
 
typedef struct ipsec_sa_dump_match_ctx_t_ ipsec_sa_dump_match_ctx_t
 

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_tunnel_protect_update_t_handler (vl_api_ipsec_tunnel_protect_update_t *mp)
 
static void vl_api_ipsec_tunnel_protect_del_t_handler (vl_api_ipsec_tunnel_protect_del_t *mp)
 
static walk_rc_t send_ipsec_tunnel_protect_details (index_t itpi, void *arg)
 
static void vl_api_ipsec_tunnel_protect_dump_t_handler (vl_api_ipsec_tunnel_protect_dump_t *mp)
 
static int ipsec_spd_action_decode (vl_api_ipsec_spd_action_t in, ipsec_policy_action_t *out)
 
static void vl_api_ipsec_spd_entry_add_del_t_handler (vl_api_ipsec_spd_entry_add_del_t *mp)
 
static void vl_api_ipsec_sad_entry_add_del_t_handler (vl_api_ipsec_sad_entry_add_del_t *mp)
 
static void vl_api_ipsec_sad_entry_add_del_v2_t_handler (vl_api_ipsec_sad_entry_add_del_v2_t *mp)
 
static int ipsec_sad_entry_add_v3 (const vl_api_ipsec_sad_entry_v3_t *entry, u32 *sa_index)
 
static void vl_api_ipsec_sad_entry_add_del_v3_t_handler (vl_api_ipsec_sad_entry_add_del_v3_t *mp)
 
static void vl_api_ipsec_sad_entry_del_t_handler (vl_api_ipsec_sad_entry_del_t *mp)
 
static void vl_api_ipsec_sad_entry_add_t_handler (vl_api_ipsec_sad_entry_add_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)
 
vl_api_ipsec_spd_action_t ipsec_spd_action_encode (ipsec_policy_action_t in)
 
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_itf_create_t_handler (vl_api_ipsec_itf_create_t *mp)
 
static void vl_api_ipsec_itf_delete_t_handler (vl_api_ipsec_itf_delete_t *mp)
 
static walk_rc_t send_ipsec_itf_details (ipsec_itf_t *itf, void *arg)
 
static void vl_api_ipsec_itf_dump_t_handler (vl_api_ipsec_itf_dump_t *mp)
 
static walk_rc_t ipsec_sa_dump_match_sa (index_t itpi, void *arg)
 
static walk_rc_t send_ipsec_sa_details (ipsec_sa_t *sa, void *arg)
 
static void vl_api_ipsec_sa_dump_t_handler (vl_api_ipsec_sa_dump_t *mp)
 
static walk_rc_t send_ipsec_sa_v2_details (ipsec_sa_t *sa, void *arg)
 
static void vl_api_ipsec_sa_v2_dump_t_handler (vl_api_ipsec_sa_v2_dump_t *mp)
 
static walk_rc_t send_ipsec_sa_v3_details (ipsec_sa_t *sa, void *arg)
 
static void vl_api_ipsec_sa_v3_dump_t_handler (vl_api_ipsec_sa_v3_dump_t *mp)
 
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 void vl_api_ipsec_set_async_mode_t_handler (vl_api_ipsec_set_async_mode_t *mp)
 
static clib_error_tipsec_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (ipsec_api_hookup)
 

Macro Definition Documentation

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   ipsec_main.msg_id_base

Definition at line 40 of file ipsec_api.c.

Typedef Documentation

◆ ipsec_dump_walk_ctx_t

◆ ipsec_sa_dump_match_ctx_t

Function Documentation

◆ ipsec_api_hookup()

static clib_error_t* ipsec_api_hookup ( vlib_main_t vm)
static

Definition at line 1121 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ ipsec_sa_dump_match_sa()

static walk_rc_t ipsec_sa_dump_match_sa ( index_t  itpi,
void *  arg 
)
static

Definition at line 753 of file ipsec_api.c.

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

◆ ipsec_sad_entry_add_v3()

static int ipsec_sad_entry_add_v3 ( const vl_api_ipsec_sad_entry_v3_t *  entry,
u32 sa_index 
)
static

Definition at line 413 of file ipsec_api.c.

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

◆ ipsec_spd_action_decode()

static int ipsec_spd_action_decode ( vl_api_ipsec_spd_action_t  in,
ipsec_policy_action_t out 
)
static

Definition at line 194 of file ipsec_api.c.

+ Here is the caller graph for this function:

◆ ipsec_spd_action_encode()

vl_api_ipsec_spd_action_t ipsec_spd_action_encode ( ipsec_policy_action_t  in)

Definition at line 547 of file ipsec_api.c.

+ Here is the caller graph for this function:

◆ send_ipsec_itf_details()

static walk_rc_t send_ipsec_itf_details ( ipsec_itf_t itf,
void *  arg 
)
static

Definition at line 711 of file ipsec_api.c.

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

◆ send_ipsec_sa_details()

static walk_rc_t send_ipsec_sa_details ( ipsec_sa_t sa,
void *  arg 
)
static

Definition at line 780 of file ipsec_api.c.

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

◆ send_ipsec_sa_v2_details()

static walk_rc_t send_ipsec_sa_v2_details ( ipsec_sa_t sa,
void *  arg 
)
static

Definition at line 863 of file ipsec_api.c.

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

◆ send_ipsec_sa_v3_details()

static walk_rc_t send_ipsec_sa_v3_details ( ipsec_sa_t sa,
void *  arg 
)
static

Definition at line 950 of file ipsec_api.c.

+ Here is the call graph for this function:
+ Here is the caller 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 563 of file ipsec_api.c.

+ Here is the call graph for this function:
+ Here is the caller 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 631 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 510 of file ipsec_api.c.

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

◆ send_ipsec_tunnel_protect_details()

static walk_rc_t send_ipsec_tunnel_protect_details ( index_t  itpi,
void *  arg 
)
static

Definition at line 130 of file ipsec_api.c.

+ Here is the call graph for this function:
+ Here is the caller 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 1030 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 56 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_itf_create_t_handler()

static void vl_api_ipsec_itf_create_t_handler ( vl_api_ipsec_itf_create_t mp)
static

Definition at line 679 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_itf_delete_t_handler()

static void vl_api_ipsec_itf_delete_t_handler ( vl_api_ipsec_itf_delete_t mp)
static

Definition at line 700 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_itf_dump_t_handler()

static void vl_api_ipsec_itf_dump_t_handler ( vl_api_ipsec_itf_dump_t mp)
static

Definition at line 730 of file ipsec_api.c.

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

+ Here is the call graph for this function:

◆ vl_api_ipsec_sa_v2_dump_t_handler()

static void vl_api_ipsec_sa_v2_dump_t_handler ( vl_api_ipsec_sa_v2_dump_t mp)
static

Definition at line 933 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sa_v3_dump_t_handler()

static void vl_api_ipsec_sa_v3_dump_t_handler ( vl_api_ipsec_sa_v3_dump_t mp)
static

Definition at line 1013 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_entry_add_del_t_handler()

static void vl_api_ipsec_sad_entry_add_del_t_handler ( vl_api_ipsec_sad_entry_add_del_t mp)
static

Definition at line 274 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_entry_add_del_v2_t_handler()

static void vl_api_ipsec_sad_entry_add_del_v2_t_handler ( vl_api_ipsec_sad_entry_add_del_v2_t mp)
static

Definition at line 339 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_entry_add_del_v3_t_handler()

static void vl_api_ipsec_sad_entry_add_del_v3_t_handler ( vl_api_ipsec_sad_entry_add_del_v3_t mp)
static

Definition at line 463 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_entry_add_t_handler()

static void vl_api_ipsec_sad_entry_add_t_handler ( vl_api_ipsec_sad_entry_add_t mp)
static

Definition at line 497 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_sad_entry_del_t_handler()

static void vl_api_ipsec_sad_entry_del_t_handler ( vl_api_ipsec_sad_entry_del_t mp)
static

Definition at line 486 of file ipsec_api.c.

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

+ Here is the call graph for this function:

◆ vl_api_ipsec_set_async_mode_t_handler()

static void vl_api_ipsec_set_async_mode_t_handler ( vl_api_ipsec_set_async_mode_t mp)
static

Definition at line 1109 of file ipsec_api.c.

+ Here is the call 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 44 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 598 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_spd_entry_add_del_t_handler()

static void vl_api_ipsec_spd_entry_add_del_t_handler ( vl_api_ipsec_spd_entry_add_del_t mp)
static

Definition at line 211 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 649 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 531 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_protect_del_t_handler()

static void vl_api_ipsec_tunnel_protect_del_t_handler ( vl_api_ipsec_tunnel_protect_del_t mp)
static

Definition at line 103 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_protect_dump_t_handler()

static void vl_api_ipsec_tunnel_protect_dump_t_handler ( vl_api_ipsec_tunnel_protect_dump_t mp)
static

Definition at line 165 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ vl_api_ipsec_tunnel_protect_update_t_handler()

static void vl_api_ipsec_tunnel_protect_update_t_handler ( vl_api_ipsec_tunnel_protect_update_t mp)
static

Definition at line 77 of file ipsec_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( ipsec_api_hookup  )