FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
lisp_api.c File Reference
+ Include dependency graph for lisp_api.c:

Go to the source code of this file.

Macros

#define vl_api_lisp_add_del_locator_set_t_endian   vl_noop_handler
 
#define vl_api_lisp_add_del_locator_set_t_print   vl_noop_handler
 
#define vl_api_lisp_add_del_remote_mapping_t_endian   vl_noop_handler
 
#define vl_api_lisp_add_del_remote_mapping_t_print   vl_noop_handler
 
#define vl_api_one_add_del_locator_set_t_endian   vl_noop_handler
 
#define vl_api_one_add_del_locator_set_t_print   vl_noop_handler
 
#define vl_api_one_add_del_remote_mapping_t_endian   vl_noop_handler
 
#define vl_api_one_add_del_remote_mapping_t_print   vl_noop_handler
 
#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 locator_tunformat_lisp_locs (vl_api_remote_locator_t *rmt_locs, u32 rloc_num)
 
static void vl_api_lisp_add_del_locator_set_t_handler (vl_api_lisp_add_del_locator_set_t *mp)
 
static void vl_api_lisp_add_del_locator_t_handler (vl_api_lisp_add_del_locator_t *mp)
 
static int unformat_lisp_eid_api (gid_address_t *dst, u32 vni, u8 type, void *src, u8 len)
 
static void vl_api_lisp_add_del_local_eid_t_handler (vl_api_lisp_add_del_local_eid_t *mp)
 
static void vl_api_lisp_eid_table_add_del_map_t_handler (vl_api_lisp_eid_table_add_del_map_t *mp)
 
static void vl_api_lisp_add_del_map_server_t_handler (vl_api_lisp_add_del_map_server_t *mp)
 
static void vl_api_lisp_add_del_map_resolver_t_handler (vl_api_lisp_add_del_map_resolver_t *mp)
 
static void vl_api_lisp_map_register_enable_disable_t_handler (vl_api_lisp_map_register_enable_disable_t *mp)
 
static void vl_api_lisp_rloc_probe_enable_disable_t_handler (vl_api_lisp_rloc_probe_enable_disable_t *mp)
 
static void vl_api_lisp_enable_disable_t_handler (vl_api_lisp_enable_disable_t *mp)
 
static void vl_api_show_lisp_map_request_mode_t_handler (vl_api_show_lisp_map_request_mode_t *mp)
 
static void vl_api_lisp_map_request_mode_t_handler (vl_api_lisp_map_request_mode_t *mp)
 
static void vl_api_lisp_pitr_set_locator_set_t_handler (vl_api_lisp_pitr_set_locator_set_t *mp)
 
static void vl_api_lisp_use_petr_t_handler (vl_api_lisp_use_petr_t *mp)
 
static void vl_api_show_lisp_use_petr_t_handler (vl_api_show_lisp_use_petr_t *mp)
 
static void vl_api_lisp_add_del_map_request_itr_rlocs_t_handler (vl_api_lisp_add_del_map_request_itr_rlocs_t *mp)
 
static void vl_api_lisp_add_del_remote_mapping_t_handler (vl_api_lisp_add_del_remote_mapping_t *mp)
 
static void vl_api_lisp_add_del_adjacency_t_handler (vl_api_lisp_add_del_adjacency_t *mp)
 
static void send_lisp_locator_details (lisp_cp_main_t *lcm, locator_t *loc, vl_api_registration_t *reg, u32 context)
 
static void vl_api_lisp_locator_dump_t_handler (vl_api_lisp_locator_dump_t *mp)
 
static void send_lisp_locator_set_details (lisp_cp_main_t *lcm, locator_set_t *lsit, vl_api_registration_t *reg, u32 context, u32 ls_index)
 
static void vl_api_lisp_locator_set_dump_t_handler (vl_api_lisp_locator_set_dump_t *mp)
 
static void lisp_fid_put_api (u8 *dst, fid_address_t *src, u8 *prefix_length)
 
static u8 fid_type_to_api_type (fid_address_t *fid)
 
static void send_lisp_eid_table_details (mapping_t *mapit, vl_api_registration_t *reg, u32 context, u8 filter)
 
static void vl_api_lisp_eid_table_dump_t_handler (vl_api_lisp_eid_table_dump_t *mp)
 
static void send_lisp_map_server_details (ip_address_t *ip, vl_api_registration_t *reg, u32 context)
 
static void vl_api_lisp_map_server_dump_t_handler (vl_api_lisp_map_server_dump_t *mp)
 
static void send_lisp_map_resolver_details (ip_address_t *ip, vl_api_registration_t *reg, u32 context)
 
static void vl_api_lisp_map_resolver_dump_t_handler (vl_api_lisp_map_resolver_dump_t *mp)
 
static void send_eid_table_map_pair (hash_pair_t *p, vl_api_registration_t *reg, u32 context)
 
static void vl_api_lisp_eid_table_map_dump_t_handler (vl_api_lisp_eid_table_map_dump_t *mp)
 
static void send_eid_table_vni (u32 vni, vl_api_registration_t *reg, u32 context)
 
static void lisp_adjacency_copy (vl_api_lisp_adjacency_t *dst, lisp_adjacency_t *adjs)
 
static void vl_api_show_lisp_rloc_probe_state_t_handler (vl_api_show_lisp_rloc_probe_state_t *mp)
 
static void vl_api_show_lisp_map_register_state_t_handler (vl_api_show_lisp_map_register_state_t *mp)
 
static void vl_api_lisp_adjacencies_get_t_handler (vl_api_lisp_adjacencies_get_t *mp)
 
static void vl_api_lisp_eid_table_vni_dump_t_handler (vl_api_lisp_eid_table_vni_dump_t *mp)
 
static void vl_api_show_lisp_status_t_handler (vl_api_show_lisp_status_t *mp)
 
static void vl_api_lisp_get_map_request_itr_rlocs_t_handler (vl_api_lisp_get_map_request_itr_rlocs_t *mp)
 
static void vl_api_show_lisp_pitr_t_handler (vl_api_show_lisp_pitr_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tlisp_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (lisp_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(LISP_ADD_DEL_LOCATOR_SET, lisp_add_del_locator_set) \
_(LISP_ADD_DEL_LOCATOR, lisp_add_del_locator) \
_(LISP_ADD_DEL_LOCAL_EID, lisp_add_del_local_eid) \
_(LISP_ADD_DEL_MAP_RESOLVER, lisp_add_del_map_resolver) \
_(LISP_ADD_DEL_MAP_SERVER, lisp_add_del_map_server) \
_(LISP_ENABLE_DISABLE, lisp_enable_disable) \
_(LISP_RLOC_PROBE_ENABLE_DISABLE, lisp_rloc_probe_enable_disable) \
_(LISP_MAP_REGISTER_ENABLE_DISABLE, lisp_map_register_enable_disable) \
_(LISP_ADD_DEL_REMOTE_MAPPING, lisp_add_del_remote_mapping) \
_(LISP_ADD_DEL_ADJACENCY, lisp_add_del_adjacency) \
_(LISP_PITR_SET_LOCATOR_SET, lisp_pitr_set_locator_set) \
_(LISP_MAP_REQUEST_MODE, lisp_map_request_mode) \
_(LISP_EID_TABLE_ADD_DEL_MAP, lisp_eid_table_add_del_map) \
_(LISP_LOCATOR_SET_DUMP, lisp_locator_set_dump) \
_(LISP_LOCATOR_DUMP, lisp_locator_dump) \
_(LISP_EID_TABLE_DUMP, lisp_eid_table_dump) \
_(LISP_MAP_RESOLVER_DUMP, lisp_map_resolver_dump) \
_(LISP_MAP_SERVER_DUMP, lisp_map_server_dump) \
_(LISP_EID_TABLE_MAP_DUMP, lisp_eid_table_map_dump) \
_(LISP_EID_TABLE_VNI_DUMP, lisp_eid_table_vni_dump) \
_(LISP_ADJACENCIES_GET, lisp_adjacencies_get) \
_(SHOW_LISP_RLOC_PROBE_STATE, show_lisp_rloc_probe_state) \
_(SHOW_LISP_MAP_REGISTER_STATE, show_lisp_map_register_state) \
_(SHOW_LISP_STATUS, show_lisp_status) \
_(LISP_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \
lisp_add_del_map_request_itr_rlocs) \
_(LISP_GET_MAP_REQUEST_ITR_RLOCS, lisp_get_map_request_itr_rlocs) \
_(SHOW_LISP_PITR, show_lisp_pitr) \
_(SHOW_LISP_MAP_REQUEST_MODE, show_lisp_map_request_mode) \
_(LISP_USE_PETR, lisp_use_petr) \
_(SHOW_LISP_USE_PETR, show_lisp_use_petr) \

Definition at line 57 of file lisp_api.c.

◆ vl_api_lisp_add_del_locator_set_t_endian

#define vl_api_lisp_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 31 of file lisp_api.c.

◆ vl_api_lisp_add_del_locator_set_t_print

#define vl_api_lisp_add_del_locator_set_t_print   vl_noop_handler

Definition at line 32 of file lisp_api.c.

◆ vl_api_lisp_add_del_remote_mapping_t_endian

#define vl_api_lisp_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 33 of file lisp_api.c.

◆ vl_api_lisp_add_del_remote_mapping_t_print

#define vl_api_lisp_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 34 of file lisp_api.c.

◆ vl_api_one_add_del_locator_set_t_endian

#define vl_api_one_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 36 of file lisp_api.c.

◆ vl_api_one_add_del_locator_set_t_print

#define vl_api_one_add_del_locator_set_t_print   vl_noop_handler

Definition at line 37 of file lisp_api.c.

◆ vl_api_one_add_del_remote_mapping_t_endian

#define vl_api_one_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 38 of file lisp_api.c.

◆ vl_api_one_add_del_remote_mapping_t_print

#define vl_api_one_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 39 of file lisp_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 45 of file lisp_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 1271 of file lisp_api.c.

◆ vl_print

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

Definition at line 50 of file lisp_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 51 of file lisp_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 41 of file lisp_api.c.

Function Documentation

◆ fid_type_to_api_type()

static u8 fid_type_to_api_type ( fid_address_t fid)
static

Definition at line 731 of file lisp_api.c.

+ Here is the caller graph for this function:

◆ lisp_adjacency_copy()

static void lisp_adjacency_copy ( vl_api_lisp_adjacency_t *  dst,
lisp_adjacency_t adjs 
)
static

Definition at line 1047 of file lisp_api.c.

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

◆ lisp_api_hookup()

static clib_error_t* lisp_api_hookup ( vlib_main_t vm)
static

Definition at line 1284 of file lisp_api.c.

+ Here is the call graph for this function:

◆ lisp_fid_put_api()

static void lisp_fid_put_api ( u8 dst,
fid_address_t src,
u8 prefix_length 
)
static

Definition at line 704 of file lisp_api.c.

+ Here is the caller graph for this function:

◆ send_eid_table_map_pair()

static void send_eid_table_map_pair ( hash_pair_t p,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 988 of file lisp_api.c.

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

◆ send_eid_table_vni()

static void send_eid_table_vni ( u32  vni,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 1034 of file lisp_api.c.

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

◆ send_lisp_eid_table_details()

static void send_lisp_eid_table_details ( mapping_t mapit,
vl_api_registration_t reg,
u32  context,
u8  filter 
)
static

Definition at line 756 of file lisp_api.c.

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

◆ send_lisp_locator_details()

static void send_lisp_locator_details ( lisp_cp_main_t lcm,
locator_t loc,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 575 of file lisp_api.c.

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

◆ send_lisp_locator_set_details()

static void send_lisp_locator_set_details ( lisp_cp_main_t lcm,
locator_set_t lsit,
vl_api_registration_t reg,
u32  context,
u32  ls_index 
)
static

Definition at line 646 of file lisp_api.c.

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

◆ send_lisp_map_resolver_details()

static void send_lisp_map_resolver_details ( ip_address_t ip,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 939 of file lisp_api.c.

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

◆ send_lisp_map_server_details()

static void send_lisp_map_server_details ( ip_address_t ip,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 890 of file lisp_api.c.

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

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 1276 of file lisp_api.c.

+ Here is the caller graph for this function:

◆ unformat_lisp_eid_api()

static int unformat_lisp_eid_api ( gid_address_t dst,
u32  vni,
u8  type,
void *  src,
u8  len 
)
static

Definition at line 202 of file lisp_api.c.

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

◆ unformat_lisp_locs()

static locator_t* unformat_lisp_locs ( vl_api_remote_locator_t *  rmt_locs,
u32  rloc_num 
)
static

Definition at line 91 of file lisp_api.c.

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

◆ vl_api_lisp_add_del_adjacency_t_handler()

static void vl_api_lisp_add_del_adjacency_t_handler ( vl_api_lisp_add_del_adjacency_t mp)
static

Definition at line 551 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_local_eid_t_handler()

static void vl_api_lisp_add_del_local_eid_t_handler ( vl_api_lisp_add_del_local_eid_t mp)
static

Definition at line 234 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_locator_set_t_handler()

static void vl_api_lisp_add_del_locator_set_t_handler ( vl_api_lisp_add_del_locator_set_t mp)
static

Definition at line 114 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_locator_t_handler()

static void vl_api_lisp_add_del_locator_t_handler ( vl_api_lisp_add_del_locator_t mp)
static

Definition at line 166 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_map_request_itr_rlocs_t_handler()

static void vl_api_lisp_add_del_map_request_itr_rlocs_t_handler ( vl_api_lisp_add_del_map_request_itr_rlocs_t mp)
static

Definition at line 470 of file lisp_api.c.

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

◆ vl_api_lisp_add_del_map_resolver_t_handler()

static void vl_api_lisp_add_del_map_resolver_t_handler ( vl_api_lisp_add_del_map_resolver_t mp)
static

Definition at line 312 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_map_server_t_handler()

static void vl_api_lisp_add_del_map_server_t_handler ( vl_api_lisp_add_del_map_server_t mp)
static

Definition at line 296 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_add_del_remote_mapping_t_handler()

static void vl_api_lisp_add_del_remote_mapping_t_handler ( vl_api_lisp_add_del_remote_mapping_t mp)
static

Definition at line 493 of file lisp_api.c.

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

◆ vl_api_lisp_adjacencies_get_t_handler()

static void vl_api_lisp_adjacencies_get_t_handler ( vl_api_lisp_adjacencies_get_t mp)
static

Definition at line 1119 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_eid_table_add_del_map_t_handler()

static void vl_api_lisp_eid_table_add_del_map_t_handler ( vl_api_lisp_eid_table_add_del_map_t mp)
static

Definition at line 286 of file lisp_api.c.

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

◆ vl_api_lisp_eid_table_dump_t_handler()

static void vl_api_lisp_eid_table_dump_t_handler ( vl_api_lisp_eid_table_dump_t mp)
static

Definition at line 850 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_eid_table_map_dump_t_handler()

static void vl_api_lisp_eid_table_map_dump_t_handler ( vl_api_lisp_eid_table_map_dump_t mp)
static

Definition at line 1004 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_eid_table_vni_dump_t_handler()

static void vl_api_lisp_eid_table_vni_dump_t_handler ( vl_api_lisp_eid_table_vni_dump_t mp)
static

Definition at line 1142 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_enable_disable_t_handler()

static void vl_api_lisp_enable_disable_t_handler ( vl_api_lisp_enable_disable_t mp)
static

Definition at line 352 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_get_map_request_itr_rlocs_t_handler()

static void vl_api_lisp_get_map_request_itr_rlocs_t_handler ( vl_api_lisp_get_map_request_itr_rlocs_t mp)
static

Definition at line 1191 of file lisp_api.c.

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

◆ vl_api_lisp_locator_dump_t_handler()

static void vl_api_lisp_locator_dump_t_handler ( vl_api_lisp_locator_dump_t mp)
static

Definition at line 603 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_locator_set_dump_t_handler()

static void vl_api_lisp_locator_set_dump_t_handler ( vl_api_lisp_locator_set_dump_t mp)
static

Definition at line 677 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_map_register_enable_disable_t_handler()

static void vl_api_lisp_map_register_enable_disable_t_handler ( vl_api_lisp_map_register_enable_disable_t mp)
static

Definition at line 331 of file lisp_api.c.

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

◆ vl_api_lisp_map_request_mode_t_handler()

static void vl_api_lisp_map_request_mode_t_handler ( vl_api_lisp_map_request_mode_t mp)
static

Definition at line 377 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_map_resolver_dump_t_handler()

static void vl_api_lisp_map_resolver_dump_t_handler ( vl_api_lisp_map_resolver_dump_t mp)
static

Definition at line 971 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_map_server_dump_t_handler()

static void vl_api_lisp_map_server_dump_t_handler ( vl_api_lisp_map_server_dump_t mp)
static

Definition at line 922 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_pitr_set_locator_set_t_handler()

static void vl_api_lisp_pitr_set_locator_set_t_handler ( vl_api_lisp_pitr_set_locator_set_t mp)
static

Definition at line 388 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_lisp_rloc_probe_enable_disable_t_handler()

static void vl_api_lisp_rloc_probe_enable_disable_t_handler ( vl_api_lisp_rloc_probe_enable_disable_t mp)
static

Definition at line 342 of file lisp_api.c.

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

◆ vl_api_lisp_use_petr_t_handler()

static void vl_api_lisp_use_petr_t_handler ( vl_api_lisp_use_petr_t mp)
static

Definition at line 405 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_show_lisp_map_register_state_t_handler()

static void vl_api_show_lisp_map_register_state_t_handler ( vl_api_show_lisp_map_register_state_t mp)
static

Definition at line 1105 of file lisp_api.c.

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

◆ vl_api_show_lisp_map_request_mode_t_handler()

static void vl_api_show_lisp_map_request_mode_t_handler ( vl_api_show_lisp_map_request_mode_t mp)
static

Definition at line 363 of file lisp_api.c.

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

◆ vl_api_show_lisp_pitr_t_handler()

static void vl_api_show_lisp_pitr_t_handler ( vl_api_show_lisp_pitr_t mp)
static

Definition at line 1222 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_show_lisp_rloc_probe_state_t_handler()

static void vl_api_show_lisp_rloc_probe_state_t_handler ( vl_api_show_lisp_rloc_probe_state_t mp)
static

Definition at line 1090 of file lisp_api.c.

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

◆ vl_api_show_lisp_status_t_handler()

static void vl_api_show_lisp_status_t_handler ( vl_api_show_lisp_status_t mp)
static

Definition at line 1175 of file lisp_api.c.

+ Here is the call graph for this function:

◆ vl_api_show_lisp_use_petr_t_handler()

static void vl_api_show_lisp_use_petr_t_handler ( vl_api_show_lisp_use_petr_t mp)
static

Definition at line 418 of file lisp_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

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