FD.io VPP  v19.01.3-6-g70449b9b9
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_remote_locator_t_endian   vl_noop_handler
 
#define vl_api_remote_locator_t_print   vl_noop_handler
 
#define vl_api_local_locator_t_endian   vl_noop_handler
 
#define vl_api_local_locator_t_print   vl_noop_handler
 
#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 61 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 35 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 36 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 37 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 38 of file lisp_api.c.

◆ vl_api_local_locator_t_endian

#define vl_api_local_locator_t_endian   vl_noop_handler

Definition at line 32 of file lisp_api.c.

◆ vl_api_local_locator_t_print

#define vl_api_local_locator_t_print   vl_noop_handler

Definition at line 33 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 40 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 41 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 42 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 43 of file lisp_api.c.

◆ vl_api_remote_locator_t_endian

#define vl_api_remote_locator_t_endian   vl_noop_handler

Definition at line 30 of file lisp_api.c.

◆ vl_api_remote_locator_t_print

#define vl_api_remote_locator_t_print   vl_noop_handler

Definition at line 31 of file lisp_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 49 of file lisp_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 1274 of file lisp_api.c.

◆ vl_print

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

Definition at line 54 of file lisp_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 55 of file lisp_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 45 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 734 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 1050 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 1287 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 707 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 991 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 1037 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 759 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 578 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 649 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 942 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 893 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 1279 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 205 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 95 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 554 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 237 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 117 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 169 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 473 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 315 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 299 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 496 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 1122 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 289 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 853 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 1007 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 1145 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 355 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 1194 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 606 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 680 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 334 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 380 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 974 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 925 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 391 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 345 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 408 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 1108 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 366 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 1225 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 1093 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 1178 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 421 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: