FD.io VPP  v20.05-21-gb1500e9ff
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 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 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 60 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 34 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 35 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 36 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 37 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 39 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 40 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 41 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 42 of file lisp_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 48 of file lisp_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 1091 of file lisp_api.c.

◆ vl_print

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

Definition at line 53 of file lisp_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 54 of file lisp_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 44 of file lisp_api.c.

Function Documentation

◆ lisp_adjacency_copy()

static void lisp_adjacency_copy ( vl_api_lisp_adjacency_t *  dst,
lisp_adjacency_t adjs 
)
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:

◆ lisp_api_hookup()

static clib_error_t* lisp_api_hookup ( vlib_main_t vm)
static

Definition at line 1104 of file lisp_api.c.

+ Here is the call 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 831 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 877 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 655 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 527 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 597 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 798 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 765 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 1096 of file lisp_api.c.

+ 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 94 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 505 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 206 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 425 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 283 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 267 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 448 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 939 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 257 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 726 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 847 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 962 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 323 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 1011 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 554 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 628 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 302 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 348 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 814 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 781 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 359 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 313 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 376 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 925 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 334 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 1042 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 910 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 995 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 389 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: