FD.io VPP  v19.08-23-g4b943d6
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_tunnel_protect_walk_ctx_t_
 

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
 

Typedefs

typedef struct ipsec_tunnel_protect_walk_ctx_t_ ipsec_tunnel_protect_walk_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 int ipsec_proto_decode (vl_api_ipsec_proto_t in, ipsec_protocol_t *out)
 
static vl_api_ipsec_proto_t ipsec_proto_encode (ipsec_protocol_t p)
 
static int ipsec_crypto_algo_decode (vl_api_ipsec_crypto_alg_t in, ipsec_crypto_alg_t *out)
 
static vl_api_ipsec_crypto_alg_t ipsec_crypto_algo_encode (ipsec_crypto_alg_t c)
 
static int ipsec_integ_algo_decode (vl_api_ipsec_integ_alg_t in, ipsec_integ_alg_t *out)
 
static vl_api_ipsec_integ_alg_t ipsec_integ_algo_encode (ipsec_integ_alg_t i)
 
static void ipsec_key_decode (const vl_api_key_t *key, ipsec_key_t *out)
 
static void ipsec_key_encode (const ipsec_key_t *in, vl_api_key_t *out)
 
static ipsec_sa_flags_t ipsec_sa_flags_decode (vl_api_ipsec_sad_flags_t in)
 
static vl_api_ipsec_sad_flags_t ipsec_sad_flags_encode (const ipsec_sa_t *sa)
 
static void vl_api_ipsec_sad_entry_add_del_t_handler (vl_api_ipsec_sad_entry_add_del_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_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_sa_t_handler (vl_api_ipsec_tunnel_if_set_sa_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 setup_message_id_table (api_main_t *am)
 
static clib_error_tipsec_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (ipsec_api_hookup)
 

Macro Definition Documentation

#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_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \
_(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \
_(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_SA, ipsec_tunnel_if_set_sa) \
_(IPSEC_SELECT_BACKEND, ipsec_select_backend) \
_(IPSEC_BACKEND_DUMP, ipsec_backend_dump) \
_(IPSEC_TUNNEL_PROTECT_UPDATE, ipsec_tunnel_protect_update) \
_(IPSEC_TUNNEL_PROTECT_DEL, ipsec_tunnel_protect_del) \
_(IPSEC_TUNNEL_PROTECT_DUMP, ipsec_tunnel_protect_dump)

Definition at line 52 of file ipsec_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 40 of file ipsec_api.c.

#define vl_msg_name_crc_list

Definition at line 984 of file ipsec_api.c.

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

Definition at line 45 of file ipsec_api.c.

#define vl_printfun

Definition at line 46 of file ipsec_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 36 of file ipsec_api.c.

Typedef Documentation

Function Documentation

static clib_error_t* ipsec_api_hookup ( vlib_main_t vm)
static

Definition at line 997 of file ipsec_api.c.

+ Here is the call graph for this function:

static int ipsec_crypto_algo_decode ( vl_api_ipsec_crypto_alg_t  in,
ipsec_crypto_alg_t out 
)
static

Definition at line 354 of file ipsec_api.c.

+ Here is the caller graph for this function:

static vl_api_ipsec_crypto_alg_t ipsec_crypto_algo_encode ( ipsec_crypto_alg_t  c)
static

Definition at line 371 of file ipsec_api.c.

+ Here is the caller graph for this function:

static int ipsec_integ_algo_decode ( vl_api_ipsec_integ_alg_t  in,
ipsec_integ_alg_t out 
)
static

Definition at line 388 of file ipsec_api.c.

+ Here is the caller graph for this function:

static vl_api_ipsec_integ_alg_t ipsec_integ_algo_encode ( ipsec_integ_alg_t  i)
static

Definition at line 404 of file ipsec_api.c.

+ Here is the caller graph for this function:

static void ipsec_key_decode ( const vl_api_key_t *  key,
ipsec_key_t out 
)
static

Definition at line 420 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ipsec_key_encode ( const ipsec_key_t in,
vl_api_key_t *  out 
)
static

Definition at line 426 of file ipsec_api.c.

+ Here is the caller graph for this function:

static int ipsec_proto_decode ( vl_api_ipsec_proto_t  in,
ipsec_protocol_t out 
)
static

Definition at line 324 of file ipsec_api.c.

+ Here is the caller graph for this function:

static vl_api_ipsec_proto_t ipsec_proto_encode ( ipsec_protocol_t  p)
static

Definition at line 341 of file ipsec_api.c.

+ Here is the caller graph for this function:

static ipsec_sa_flags_t ipsec_sa_flags_decode ( vl_api_ipsec_sad_flags_t  in)
static

Definition at line 433 of file ipsec_api.c.

+ Here is the caller graph for this function:

static vl_api_ipsec_sad_flags_t ipsec_sad_flags_encode ( const ipsec_sa_t sa)
static

Definition at line 453 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int ipsec_spd_action_decode ( vl_api_ipsec_spd_action_t  in,
ipsec_policy_action_t out 
)
static

Definition at line 238 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_action_t ipsec_spd_action_encode ( ipsec_policy_action_t  in)

Definition at line 580 of file ipsec_api.c.

+ Here is the caller graph for this function:

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 781 of file ipsec_api.c.

+ Here is the call graph for this function:

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

Definition at line 596 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 669 of file ipsec_api.c.

+ Here is the call graph for this function:

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

Definition at line 538 of file ipsec_api.c.

+ Here is the call graph for this function:

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

Definition at line 169 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 989 of file ipsec_api.c.

+ Here is the caller graph for this function:

static void vl_api_ipsec_backend_dump_t_handler ( vl_api_ipsec_backend_dump_t mp)
static

Definition at line 895 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_interface_add_del_spd_t_handler ( vl_api_ipsec_interface_add_del_spd_t mp)
static

Definition at line 87 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_ipsec_sa_dump_t_handler ( vl_api_ipsec_sa_dump_t mp)
static

Definition at line 830 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_sad_entry_add_del_t_handler ( vl_api_ipsec_sad_entry_add_del_t mp)
static

Definition at line 472 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_ipsec_select_backend_t_handler ( vl_api_ipsec_select_backend_t mp)
static

Definition at line 940 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_spd_add_del_t_handler ( vl_api_ipsec_spd_add_del_t mp)
static

Definition at line 70 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_spd_dump_t_handler ( vl_api_ipsec_spd_dump_t mp)
static

Definition at line 631 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_spd_entry_add_del_t_handler ( vl_api_ipsec_spd_entry_add_del_t mp)
static

Definition at line 255 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_ipsec_spd_interface_dump_t_handler ( vl_api_ipsec_spd_interface_dump_t mp)
static

Definition at line 686 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_spds_dump_t_handler ( vl_api_ipsec_spds_dump_t mp)
static

Definition at line 559 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_tunnel_if_add_del_t_handler ( vl_api_ipsec_tunnel_if_add_del_t mp)
static

Definition at line 723 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_tunnel_if_set_sa_t_handler ( vl_api_ipsec_tunnel_if_set_sa_t mp)
static

Definition at line 874 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_tunnel_protect_del_t_handler ( vl_api_ipsec_tunnel_protect_del_t mp)
static

Definition at line 140 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_ipsec_tunnel_protect_dump_t_handler ( vl_api_ipsec_tunnel_protect_dump_t mp)
static

Definition at line 201 of file ipsec_api.c.

+ Here is the call graph for this function:

static void vl_api_ipsec_tunnel_protect_update_t_handler ( vl_api_ipsec_tunnel_protect_update_t mp)
static

Definition at line 112 of file ipsec_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_API_INIT_FUNCTION ( ipsec_api_hookup  )

+ Here is the caller graph for this function: