FD.io VPP  v19.08.3-2-gbabecb413
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 1275 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 735 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 1051 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 1288 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 708 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 992 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 1038 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 760 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 579 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 650 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 943 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 894 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 1280 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 206 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 555 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 238 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 118 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 170 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 474 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 316 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 300 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 497 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 1123 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 290 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 854 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 1008 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 1146 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 356 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 1195 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 607 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 681 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 335 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 381 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 975 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 926 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 392 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 346 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 409 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 1109 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 367 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 1226 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 1094 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 1179 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 422 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: