FD.io VPP  v17.04.2-2-ga8f93f8
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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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, unix_shared_memory_queue_t *q, 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

#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.

#define vl_api_lisp_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 35 of file lisp_api.c.

#define vl_api_lisp_add_del_locator_set_t_print   vl_noop_handler

Definition at line 36 of file lisp_api.c.

#define vl_api_lisp_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 37 of file lisp_api.c.

#define vl_api_lisp_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 38 of file lisp_api.c.

#define vl_api_local_locator_t_endian   vl_noop_handler

Definition at line 32 of file lisp_api.c.

#define vl_api_local_locator_t_print   vl_noop_handler

Definition at line 33 of file lisp_api.c.

#define vl_api_one_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 40 of file lisp_api.c.

#define vl_api_one_add_del_locator_set_t_print   vl_noop_handler

Definition at line 41 of file lisp_api.c.

#define vl_api_one_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 42 of file lisp_api.c.

#define vl_api_one_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 43 of file lisp_api.c.

#define vl_api_remote_locator_t_endian   vl_noop_handler

Definition at line 30 of file lisp_api.c.

#define vl_api_remote_locator_t_print   vl_noop_handler

Definition at line 31 of file lisp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 49 of file lisp_api.c.

#define vl_msg_name_crc_list

Definition at line 1288 of file lisp_api.c.

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

Definition at line 54 of file lisp_api.c.

#define vl_printfun

Definition at line 55 of file lisp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 45 of file lisp_api.c.

Function Documentation

static u8 fid_type_to_api_type ( fid_address_t fid)
static

Definition at line 720 of file lisp_api.c.

+ Here is the caller graph for this function:

static void lisp_adjacency_copy ( vl_api_lisp_adjacency_t dst,
lisp_adjacency_t adjs 
)
static

Definition at line 1044 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* lisp_api_hookup ( vlib_main_t vm)
static

Definition at line 1301 of file lisp_api.c.

+ Here is the call graph for this function:

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

Definition at line 693 of file lisp_api.c.

+ Here is the caller graph for this function:

static void send_eid_table_map_pair ( hash_pair_t p,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 983 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_eid_table_vni ( u32  vni,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 1031 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_lisp_eid_table_details ( mapping_t mapit,
unix_shared_memory_queue_t q,
u32  context,
u8  filter 
)
static

Definition at line 745 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_lisp_locator_details ( lisp_cp_main_t lcm,
locator_t loc,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 561 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_lisp_locator_set_details ( lisp_cp_main_t lcm,
locator_set_t lsit,
unix_shared_memory_queue_t q,
u32  context,
u32  ls_index 
)
static

Definition at line 633 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_lisp_map_resolver_details ( ip_address_t *  ip,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 932 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_lisp_map_server_details ( ip_address_t *  ip,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 881 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 1293 of file lisp_api.c.

+ Here is the caller graph for this function:

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

Definition at line 201 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

static void vl_api_lisp_add_del_adjacency_t_handler ( vl_api_lisp_add_del_adjacency_t mp)
static

Definition at line 537 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_add_del_local_eid_t_handler ( vl_api_lisp_add_del_local_eid_t mp)
static

Definition at line 233 of file lisp_api.c.

+ Here is the call graph for this function:

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:

static void vl_api_lisp_add_del_locator_t_handler ( vl_api_lisp_add_del_locator_t mp)
static

Definition at line 167 of file lisp_api.c.

+ Here is the call graph for this function:

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 472 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lisp_add_del_map_resolver_t_handler ( vl_api_lisp_add_del_map_resolver_t mp)
static

Definition at line 309 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_add_del_map_server_t_handler ( vl_api_lisp_add_del_map_server_t mp)
static

Definition at line 293 of file lisp_api.c.

+ Here is the call graph for this function:

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:

static void vl_api_lisp_adjacencies_get_t_handler ( vl_api_lisp_adjacencies_get_t mp)
static

Definition at line 1116 of file lisp_api.c.

+ Here is the call graph for this function:

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 283 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lisp_eid_table_dump_t_handler ( vl_api_lisp_eid_table_dump_t mp)
static

Definition at line 839 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_eid_table_map_dump_t_handler ( vl_api_lisp_eid_table_map_dump_t mp)
static

Definition at line 999 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_eid_table_vni_dump_t_handler ( vl_api_lisp_eid_table_vni_dump_t mp)
static

Definition at line 1139 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_enable_disable_t_handler ( vl_api_lisp_enable_disable_t mp)
static

Definition at line 349 of file lisp_api.c.

+ Here is the call graph for this function:

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 1197 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lisp_locator_dump_t_handler ( vl_api_lisp_locator_dump_t mp)
static

Definition at line 589 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_locator_set_dump_t_handler ( vl_api_lisp_locator_set_dump_t mp)
static

Definition at line 664 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_map_register_enable_disable_t_handler ( vl_api_lisp_map_register_enable_disable_t mp)
static

Definition at line 328 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lisp_map_request_mode_t_handler ( vl_api_lisp_map_request_mode_t mp)
static

Definition at line 374 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_map_resolver_dump_t_handler ( vl_api_lisp_map_resolver_dump_t mp)
static

Definition at line 964 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_map_server_dump_t_handler ( vl_api_lisp_map_server_dump_t mp)
static

Definition at line 913 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_pitr_set_locator_set_t_handler ( vl_api_lisp_pitr_set_locator_set_t mp)
static

Definition at line 385 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_lisp_rloc_probe_enable_disable_t_handler ( vl_api_lisp_rloc_probe_enable_disable_t mp)
static

Definition at line 339 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lisp_use_petr_t_handler ( vl_api_lisp_use_petr_t mp)
static

Definition at line 400 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_show_lisp_map_register_state_t_handler ( vl_api_show_lisp_map_register_state_t mp)
static

Definition at line 1102 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_lisp_map_request_mode_t_handler ( vl_api_show_lisp_map_request_mode_t mp)
static

Definition at line 360 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_lisp_pitr_t_handler ( vl_api_show_lisp_pitr_t mp)
static

Definition at line 1235 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_show_lisp_rloc_probe_state_t_handler ( vl_api_show_lisp_rloc_probe_state_t mp)
static

Definition at line 1087 of file lisp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_lisp_status_t_handler ( vl_api_show_lisp_status_t mp)
static

Definition at line 1174 of file lisp_api.c.

+ Here is the call graph for this function:

static void vl_api_show_lisp_use_petr_t_handler ( vl_api_show_lisp_use_petr_t mp)
static

Definition at line 413 of file lisp_api.c.

+ Here is the call graph for this function:

VLIB_API_INIT_FUNCTION ( lisp_api_hookup  )

+ Here is the caller graph for this function: