FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
ikev2_api.c File Reference
+ Include dependency graph for ikev2_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 vl_api_version(n, v)   static u32 api_version=(v);
 
#define IKEV2_PLUGIN_VERSION_MAJOR   1
 
#define IKEV2_PLUGIN_VERSION_MINOR   0
 
#define REPLY_MSG_ID_BASE   ikev2_main.msg_id_base
 
#define foreach_ikev2_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_ikev2_plugin_get_version_t_handler (vl_api_ikev2_plugin_get_version_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 (ikev2_main_t *im, api_main_t *am)
 
static clib_error_tikev2_plugin_api_hookup (vlib_main_t *vm)
 
static clib_error_tikev2_api_init (vlib_main_t *vm)
 

Variables

ikev2_main_t ikev2_main
 

Macro Definition Documentation

◆ foreach_ikev2_api_msg

#define foreach_ikev2_api_msg
Value:
_(IKEV2_PLUGIN_GET_VERSION, ikev2_plugin_get_version) \
_(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)
clib_error_t * ikev2_initiate_sa_init(vlib_main_t *vm, u8 *name)
Definition: ikev2.c:2946
clib_error_t * ikev2_set_local_key(vlib_main_t *vm, u8 *file)
Definition: ikev2.c:2699
clib_error_t * ikev2_initiate_rekey_child_sa(vlib_main_t *vm, u32 ispi)
Definition: ikev2.c:3278

Definition at line 57 of file ikev2_api.c.

◆ IKEV2_PLUGIN_VERSION_MAJOR

#define IKEV2_PLUGIN_VERSION_MAJOR   1

Definition at line 52 of file ikev2_api.c.

◆ IKEV2_PLUGIN_VERSION_MINOR

#define IKEV2_PLUGIN_VERSION_MINOR   0

Definition at line 53 of file ikev2_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   ikev2_main.msg_id_base

Definition at line 54 of file ikev2_api.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 46 of file ikev2_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 35 of file ikev2_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 418 of file ikev2_api.c.

◆ vl_print

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

Definition at line 40 of file ikev2_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 41 of file ikev2_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 31 of file ikev2_api.c.

Function Documentation

◆ ikev2_api_init()

static clib_error_t* ikev2_api_init ( vlib_main_t vm)
static

Definition at line 449 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ ikev2_plugin_api_hookup()

static clib_error_t* ikev2_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 432 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( ikev2_main_t im,
api_main_t am 
)
static

Definition at line 423 of file ikev2_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 371 of file ikev2_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 349 of file ikev2_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 392 of file ikev2_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 326 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_plugin_get_version_t_handler()

static void vl_api_ikev2_plugin_get_version_t_handler ( vl_api_ikev2_plugin_get_version_t mp)
static

Definition at line 74 of file ikev2_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 98 of file ikev2_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 120 of file ikev2_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 145 of file ikev2_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 170 of file ikev2_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 269 of file ikev2_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 241 of file ikev2_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 196 of file ikev2_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 216 of file ikev2_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 297 of file ikev2_api.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ikev2_main

ikev2_main_t ikev2_main

Definition at line 29 of file ikev2.c.