FD.io VPP  v21.01.1
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_endianfun   /* define message structures */
 
#define IKEV2_PLUGIN_VERSION_MAJOR   1
 
#define IKEV2_PLUGIN_VERSION_MINOR   0
 
#define REPLY_MSG_ID_BASE   ikev2_main.msg_id_base
 

Functions

static u32 ikev2_encode_sa_index (u32 sai, u32 ti)
 
static void ikev2_decode_sa_index (u32 api_sai, u32 *sai, u32 *ti)
 
static void cp_ike_transforms (vl_api_ikev2_ike_transforms_t *vl_api_ts, ikev2_transforms_set *ts)
 
static void cp_esp_transforms (vl_api_ikev2_esp_transforms_t *vl_api_ts, ikev2_transforms_set *ts)
 
static void cp_id (vl_api_ikev2_id_t *vl_api_id, ikev2_id_t *id)
 
static void cp_ts (vl_api_ikev2_ts_t *vl_api_ts, ikev2_ts_t *ts, u8 is_local)
 
static void cp_auth (vl_api_ikev2_auth_t *vl_api_auth, ikev2_auth_t *auth)
 
static void cp_responder (vl_api_ikev2_responder_t *vl_api_responder, ikev2_responder_t *responder)
 
void cp_sa_transform (vl_api_ikev2_sa_transform_t *vl_tr, ikev2_sa_transform_t *tr)
 
static void send_profile (ikev2_profile_t *profile, vl_api_registration_t *reg, u32 context)
 
static void vl_api_ikev2_profile_dump_t_handler (vl_api_ikev2_profile_dump_t *mp)
 
static void send_sa (ikev2_sa_t *sa, vl_api_ikev2_sa_dump_t *mp, u32 api_sa_index)
 
static void vl_api_ikev2_sa_dump_t_handler (vl_api_ikev2_sa_dump_t *mp)
 
static void send_child_sa (ikev2_child_sa_t *child, vl_api_ikev2_child_sa_dump_t *mp, u32 child_sa_index, u32 sa_index)
 
static void vl_api_ikev2_child_sa_dump_t_handler (vl_api_ikev2_child_sa_dump_t *mp)
 
static void vl_api_ikev2_traffic_selector_dump_t_handler (vl_api_ikev2_traffic_selector_dump_t *mp)
 
static void vl_api_ikev2_nonce_get_t_handler (vl_api_ikev2_nonce_get_t *mp)
 
static void vl_api_ikev2_plugin_get_version_t_handler (vl_api_ikev2_plugin_get_version_t *mp)
 
static void vl_api_ikev2_profile_set_liveness_t_handler (vl_api_ikev2_profile_set_liveness_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_udp_encap_t_handler (vl_api_ikev2_profile_set_udp_encap_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_profile_set_ipsec_udp_port_t_handler (vl_api_ikev2_profile_set_ipsec_udp_port_t *mp)
 
static void vl_api_ikev2_set_tunnel_interface_t_handler (vl_api_ikev2_set_tunnel_interface_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_profile_disable_natt_t_handler (vl_api_ikev2_profile_disable_natt_t *mp)
 
static void vl_api_ikev2_initiate_rekey_child_sa_t_handler (vl_api_ikev2_initiate_rekey_child_sa_t *mp)
 
static clib_error_tikev2_api_init (vlib_main_t *vm)
 

Variables

ikev2_main_t ikev2_main
 

Macro Definition Documentation

◆ IKEV2_PLUGIN_VERSION_MAJOR

#define IKEV2_PLUGIN_VERSION_MAJOR   1

Definition at line 41 of file ikev2_api.c.

◆ IKEV2_PLUGIN_VERSION_MINOR

#define IKEV2_PLUGIN_VERSION_MINOR   0

Definition at line 42 of file ikev2_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   ikev2_main.msg_id_base

Definition at line 43 of file ikev2_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 34 of file ikev2_api.c.

Function Documentation

◆ cp_auth()

static void cp_auth ( vl_api_ikev2_auth_t *  vl_api_auth,
ikev2_auth_t auth 
)
static

Definition at line 106 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ cp_esp_transforms()

static void cp_esp_transforms ( vl_api_ikev2_esp_transforms_t *  vl_api_ts,
ikev2_transforms_set ts 
)
static

Definition at line 70 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ cp_id()

static void cp_id ( vl_api_ikev2_id_t *  vl_api_id,
ikev2_id_t id 
)
static

Definition at line 79 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ cp_ike_transforms()

static void cp_ike_transforms ( vl_api_ikev2_ike_transforms_t *  vl_api_ts,
ikev2_transforms_set ts 
)
static

Definition at line 60 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ cp_responder()

static void cp_responder ( vl_api_ikev2_responder_t *  vl_api_responder,
ikev2_responder_t responder 
)
static

Definition at line 115 of file ikev2_api.c.

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

◆ cp_sa_transform()

void cp_sa_transform ( vl_api_ikev2_sa_transform_t *  vl_tr,
ikev2_sa_transform_t tr 
)

Definition at line 123 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ cp_ts()

static void cp_ts ( vl_api_ikev2_ts_t *  vl_api_ts,
ikev2_ts_t ts,
u8  is_local 
)
static

Definition at line 95 of file ikev2_api.c.

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

◆ ikev2_api_init()

static clib_error_t* ikev2_api_init ( vlib_main_t vm)
static

Definition at line 973 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ ikev2_decode_sa_index()

static void ikev2_decode_sa_index ( u32  api_sai,
u32 sai,
u32 ti 
)
static

Definition at line 53 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ ikev2_encode_sa_index()

static u32 ikev2_encode_sa_index ( u32  sai,
u32  ti 
)
static

Definition at line 47 of file ikev2_api.c.

+ Here is the caller graph for this function:

◆ send_child_sa()

static void send_child_sa ( ikev2_child_sa_t child,
vl_api_ikev2_child_sa_dump_t mp,
u32  child_sa_index,
u32  sa_index 
)
static

Definition at line 283 of file ikev2_api.c.

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

◆ send_profile()

static void send_profile ( ikev2_profile_t profile,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 135 of file ikev2_api.c.

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

◆ send_sa()

static void send_sa ( ikev2_sa_t sa,
vl_api_ikev2_sa_dump_t mp,
u32  api_sa_index 
)
static

Definition at line 198 of file ikev2_api.c.

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

◆ vl_api_ikev2_child_sa_dump_t_handler()

static void vl_api_ikev2_child_sa_dump_t_handler ( vl_api_ikev2_child_sa_dump_t mp)
static

Definition at line 340 of file ikev2_api.c.

+ Here is the call 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 897 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 871 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 948 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 844 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_nonce_get_t_handler()

static void vl_api_ikev2_nonce_get_t_handler ( vl_api_ikev2_nonce_get_t mp)
static

Definition at line 415 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 449 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 497 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_disable_natt_t_handler()

static void vl_api_ikev2_profile_disable_natt_t_handler ( vl_api_ikev2_profile_disable_natt_t mp)
static

Definition at line 922 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_dump_t_handler()

static void vl_api_ikev2_profile_dump_t_handler ( vl_api_ikev2_profile_dump_t mp)
static

Definition at line 180 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 523 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 552 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_set_ipsec_udp_port_t_handler()

static void vl_api_ikev2_profile_set_ipsec_udp_port_t_handler ( vl_api_ikev2_profile_set_ipsec_udp_port_t mp)
static

Definition at line 790 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_liveness_t_handler()

static void vl_api_ikev2_profile_set_liveness_t_handler ( vl_api_ikev2_profile_set_liveness_t mp)
static

Definition at line 474 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_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 607 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_profile_set_udp_encap_t_handler()

static void vl_api_ikev2_profile_set_udp_encap_t_handler ( vl_api_ikev2_profile_set_udp_encap_t mp)
static

Definition at line 582 of file ikev2_api.c.

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

◆ vl_api_ikev2_sa_dump_t_handler()

static void vl_api_ikev2_sa_dump_t_handler ( vl_api_ikev2_sa_dump_t mp)
static

Definition at line 262 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 725 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 693 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 639 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 663 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 756 of file ikev2_api.c.

+ Here is the call graph for this function:

◆ vl_api_ikev2_set_tunnel_interface_t_handler()

static void vl_api_ikev2_set_tunnel_interface_t_handler ( vl_api_ikev2_set_tunnel_interface_t mp)
static

Definition at line 814 of file ikev2_api.c.

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

◆ vl_api_ikev2_traffic_selector_dump_t_handler()

static void vl_api_ikev2_traffic_selector_dump_t_handler ( vl_api_ikev2_traffic_selector_dump_t mp)
static

Definition at line 369 of file ikev2_api.c.

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

Variable Documentation

◆ ikev2_main

ikev2_main_t ikev2_main

Definition at line 35 of file ikev2.c.