FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
one_api.c File Reference
+ Include dependency graph for one_api.c:

Go to the source code of this file.

Macros

#define vl_api_one_remote_locator_t_endian   vl_noop_handler
 
#define vl_api_one_remote_locator_t_print   vl_noop_handler
 
#define vl_api_one_local_locator_t_endian   vl_noop_handler
 
#define vl_api_one_local_locator_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_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 REPLY_DETAILS(t, body)
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static locator_tunformat_one_locs (vl_api_one_remote_locator_t *rmt_locs, u32 rloc_num)
 
static void vl_api_one_add_del_locator_set_t_handler (vl_api_one_add_del_locator_set_t *mp)
 
static void vl_api_one_add_del_locator_t_handler (vl_api_one_add_del_locator_t *mp)
 
static int unformat_one_eid_api (gid_address_t *dst, u32 vni, u8 type, void *src, u8 len)
 
static void vl_api_one_add_del_local_eid_t_handler (vl_api_one_add_del_local_eid_t *mp)
 
static void vl_api_one_eid_table_add_del_map_t_handler (vl_api_one_eid_table_add_del_map_t *mp)
 
static void vl_api_one_add_del_map_server_t_handler (vl_api_one_add_del_map_server_t *mp)
 
static void vl_api_one_add_del_map_resolver_t_handler (vl_api_one_add_del_map_resolver_t *mp)
 
static void vl_api_one_map_register_enable_disable_t_handler (vl_api_one_map_register_enable_disable_t *mp)
 
static void vl_api_one_rloc_probe_enable_disable_t_handler (vl_api_one_rloc_probe_enable_disable_t *mp)
 
static void vl_api_one_enable_disable_t_handler (vl_api_one_enable_disable_t *mp)
 
static void vl_api_show_one_map_request_mode_t_handler (vl_api_show_one_map_request_mode_t *mp)
 
static void vl_api_one_map_request_mode_t_handler (vl_api_one_map_request_mode_t *mp)
 
static void vl_api_one_pitr_set_locator_set_t_handler (vl_api_one_pitr_set_locator_set_t *mp)
 
static void vl_api_one_use_petr_t_handler (vl_api_one_use_petr_t *mp)
 
static void vl_api_show_one_use_petr_t_handler (vl_api_show_one_use_petr_t *mp)
 
static void vl_api_one_add_del_map_request_itr_rlocs_t_handler (vl_api_one_add_del_map_request_itr_rlocs_t *mp)
 
static void vl_api_one_add_del_remote_mapping_t_handler (vl_api_one_add_del_remote_mapping_t *mp)
 
static void vl_api_one_add_del_adjacency_t_handler (vl_api_one_add_del_adjacency_t *mp)
 
static void send_one_locator_details (lisp_cp_main_t *lcm, locator_t *loc, unix_shared_memory_queue_t *q, u32 context)
 
static void vl_api_one_locator_dump_t_handler (vl_api_one_locator_dump_t *mp)
 
static void send_one_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_one_locator_set_dump_t_handler (vl_api_one_locator_set_dump_t *mp)
 
static void one_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_one_eid_table_details (mapping_t *mapit, unix_shared_memory_queue_t *q, u32 context, u8 filter)
 
static void vl_api_one_eid_table_dump_t_handler (vl_api_one_eid_table_dump_t *mp)
 
static void send_one_map_server_details (ip_address_t *ip, unix_shared_memory_queue_t *q, u32 context)
 
static void vl_api_one_map_server_dump_t_handler (vl_api_one_map_server_dump_t *mp)
 
static void send_one_map_resolver_details (ip_address_t *ip, unix_shared_memory_queue_t *q, u32 context)
 
static void vl_api_one_map_resolver_dump_t_handler (vl_api_one_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_one_eid_table_map_dump_t_handler (vl_api_one_eid_table_map_dump_t *mp)
 
static void send_eid_table_vni (u32 vni, unix_shared_memory_queue_t *q, u32 context)
 
static void one_adjacency_copy (vl_api_one_adjacency_t *dst, lisp_adjacency_t *adjs)
 
static void vl_api_show_one_rloc_probe_state_t_handler (vl_api_show_one_rloc_probe_state_t *mp)
 
static void vl_api_show_one_map_register_state_t_handler (vl_api_show_one_map_register_state_t *mp)
 
static void vl_api_one_adjacencies_get_t_handler (vl_api_one_adjacencies_get_t *mp)
 
static void vl_api_one_eid_table_vni_dump_t_handler (vl_api_one_eid_table_vni_dump_t *mp)
 
static void vl_api_show_one_status_t_handler (vl_api_show_one_status_t *mp)
 
static void vl_api_one_get_map_request_itr_rlocs_t_handler (vl_api_one_get_map_request_itr_rlocs_t *mp)
 
static void vl_api_show_one_pitr_t_handler (vl_api_show_one_pitr_t *mp)
 
static void vl_api_show_one_stats_enable_disable_t_handler (vl_api_show_one_stats_enable_disable_t *mp)
 
static void vl_api_one_stats_enable_disable_t_handler (vl_api_one_stats_enable_disable_t *mp)
 
static void lisp_fid_addr_to_api (fid_address_t *fid, u8 *dst, u8 *api_eid_type, u8 *prefix_length)
 
static void vl_api_one_stats_dump_t_handler (vl_api_one_stats_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tone_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (one_api_hookup)
 

Macro Definition Documentation

#define foreach_vpe_api_msg
Value:
_(ONE_ADD_DEL_LOCATOR_SET, one_add_del_locator_set) \
_(ONE_ADD_DEL_LOCATOR, one_add_del_locator) \
_(ONE_ADD_DEL_LOCAL_EID, one_add_del_local_eid) \
_(ONE_ADD_DEL_MAP_RESOLVER, one_add_del_map_resolver) \
_(ONE_ADD_DEL_MAP_SERVER, one_add_del_map_server) \
_(ONE_ENABLE_DISABLE, one_enable_disable) \
_(ONE_RLOC_PROBE_ENABLE_DISABLE, one_rloc_probe_enable_disable) \
_(ONE_MAP_REGISTER_ENABLE_DISABLE, one_map_register_enable_disable) \
_(ONE_ADD_DEL_REMOTE_MAPPING, one_add_del_remote_mapping) \
_(ONE_ADD_DEL_ADJACENCY, one_add_del_adjacency) \
_(ONE_PITR_SET_LOCATOR_SET, one_pitr_set_locator_set) \
_(ONE_MAP_REQUEST_MODE, one_map_request_mode) \
_(ONE_EID_TABLE_ADD_DEL_MAP, one_eid_table_add_del_map) \
_(ONE_LOCATOR_SET_DUMP, one_locator_set_dump) \
_(ONE_LOCATOR_DUMP, one_locator_dump) \
_(ONE_EID_TABLE_DUMP, one_eid_table_dump) \
_(ONE_MAP_RESOLVER_DUMP, one_map_resolver_dump) \
_(ONE_MAP_SERVER_DUMP, one_map_server_dump) \
_(ONE_EID_TABLE_MAP_DUMP, one_eid_table_map_dump) \
_(ONE_EID_TABLE_VNI_DUMP, one_eid_table_vni_dump) \
_(ONE_ADJACENCIES_GET, one_adjacencies_get) \
_(SHOW_ONE_RLOC_PROBE_STATE, show_one_rloc_probe_state) \
_(SHOW_ONE_MAP_REGISTER_STATE, show_one_map_register_state) \
_(SHOW_ONE_STATUS, show_one_status) \
_(ONE_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \
one_add_del_map_request_itr_rlocs) \
_(ONE_GET_MAP_REQUEST_ITR_RLOCS, one_get_map_request_itr_rlocs) \
_(SHOW_ONE_PITR, show_one_pitr) \
_(SHOW_ONE_MAP_REQUEST_MODE, show_one_map_request_mode) \
_(ONE_USE_PETR, one_use_petr) \
_(SHOW_ONE_USE_PETR, show_one_use_petr) \
_(SHOW_ONE_STATS_ENABLE_DISABLE, show_one_stats_enable_disable) \
_(ONE_STATS_ENABLE_DISABLE, one_stats_enable_disable) \
_(ONE_STATS_DUMP, one_stats_dump) \

Definition at line 76 of file one_api.c.

#define REPLY_DETAILS (   t,
  body 
)
Value:
do { \
rv = vl_msg_api_pd_handler (mp, rv); \
q = vl_api_client_index_to_input_queue (mp->client_index); \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = ntohs((t)); \
rmp->context = mp->context; \
do {body;} while (0); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
void vl_msg_api_send_shmem(unix_shared_memory_queue_t *q, u8 *elem)
unix_shared_memory_queue_t * vl_api_client_index_to_input_queue(u32 index)
void * vl_msg_api_alloc(int nbytes)
int vl_msg_api_pd_handler(void *mp, int rv)
Definition: api_shared.c:802
unsigned char u8
Definition: types.h:56
struct _unix_shared_memory_queue unix_shared_memory_queue_t

Definition at line 61 of file one_api.c.

#define vl_api_one_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 40 of file one_api.c.

#define vl_api_one_add_del_locator_set_t_endian   vl_noop_handler

Definition at line 40 of file one_api.c.

#define vl_api_one_add_del_locator_set_t_print   vl_noop_handler

Definition at line 41 of file one_api.c.

#define vl_api_one_add_del_locator_set_t_print   vl_noop_handler

Definition at line 41 of file one_api.c.

#define vl_api_one_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 42 of file one_api.c.

#define vl_api_one_add_del_remote_mapping_t_endian   vl_noop_handler

Definition at line 42 of file one_api.c.

#define vl_api_one_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 43 of file one_api.c.

#define vl_api_one_add_del_remote_mapping_t_print   vl_noop_handler

Definition at line 43 of file one_api.c.

#define vl_api_one_local_locator_t_endian   vl_noop_handler

Definition at line 32 of file one_api.c.

#define vl_api_one_local_locator_t_print   vl_noop_handler

Definition at line 33 of file one_api.c.

#define vl_api_one_remote_locator_t_endian   vl_noop_handler

Definition at line 30 of file one_api.c.

#define vl_api_one_remote_locator_t_print   vl_noop_handler

Definition at line 31 of file one_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 49 of file one_api.c.

#define vl_msg_name_crc_list

Definition at line 1383 of file one_api.c.

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

Definition at line 54 of file one_api.c.

#define vl_printfun

Definition at line 55 of file one_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 45 of file one_api.c.

Function Documentation

static u8 fid_type_to_api_type ( fid_address_t fid)
static

Definition at line 738 of file one_api.c.

+ Here is the caller graph for this function:

static void lisp_fid_addr_to_api ( fid_address_t fid,
u8 dst,
u8 api_eid_type,
u8 prefix_length 
)
static

Definition at line 1319 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void one_adjacency_copy ( vl_api_one_adjacency_t dst,
lisp_adjacency_t adjs 
)
static

Definition at line 1057 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* one_api_hookup ( vlib_main_t vm)
static

Definition at line 1396 of file one_api.c.

+ Here is the call graph for this function:

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

Definition at line 711 of file one_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 997 of file one_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 1044 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 763 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 579 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_one_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 651 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 946 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 895 of file one_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 1388 of file one_api.c.

+ Here is the caller graph for this function:

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

Definition at line 220 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static locator_t* unformat_one_locs ( vl_api_one_remote_locator_t rmt_locs,
u32  rloc_num 
)
static

Definition at line 114 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_add_del_adjacency_t_handler ( vl_api_one_add_del_adjacency_t mp)
static

Definition at line 555 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_local_eid_t_handler ( vl_api_one_add_del_local_eid_t mp)
static

Definition at line 252 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_locator_set_t_handler ( vl_api_one_add_del_locator_set_t mp)
static

Definition at line 136 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_locator_t_handler ( vl_api_one_add_del_locator_t mp)
static

Definition at line 186 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_map_request_itr_rlocs_t_handler ( vl_api_one_add_del_map_request_itr_rlocs_t mp)
static

Definition at line 490 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_add_del_map_resolver_t_handler ( vl_api_one_add_del_map_resolver_t mp)
static

Definition at line 327 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_map_server_t_handler ( vl_api_one_add_del_map_server_t mp)
static

Definition at line 312 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_add_del_remote_mapping_t_handler ( vl_api_one_add_del_remote_mapping_t mp)
static

Definition at line 511 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_adjacencies_get_t_handler ( vl_api_one_adjacencies_get_t mp)
static

Definition at line 1129 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_eid_table_add_del_map_t_handler ( vl_api_one_eid_table_add_del_map_t mp)
static

Definition at line 302 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_eid_table_dump_t_handler ( vl_api_one_eid_table_dump_t mp)
static

Definition at line 853 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_eid_table_map_dump_t_handler ( vl_api_one_eid_table_map_dump_t mp)
static

Definition at line 1013 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_eid_table_vni_dump_t_handler ( vl_api_one_eid_table_vni_dump_t mp)
static

Definition at line 1152 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_enable_disable_t_handler ( vl_api_one_enable_disable_t mp)
static

Definition at line 367 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_get_map_request_itr_rlocs_t_handler ( vl_api_one_get_map_request_itr_rlocs_t mp)
static

Definition at line 1209 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_locator_dump_t_handler ( vl_api_one_locator_dump_t mp)
static

Definition at line 607 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_locator_set_dump_t_handler ( vl_api_one_locator_set_dump_t mp)
static

Definition at line 682 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_map_register_enable_disable_t_handler ( vl_api_one_map_register_enable_disable_t mp)
static

Definition at line 346 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_map_request_mode_t_handler ( vl_api_one_map_request_mode_t mp)
static

Definition at line 392 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_map_resolver_dump_t_handler ( vl_api_one_map_resolver_dump_t mp)
static

Definition at line 978 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_map_server_dump_t_handler ( vl_api_one_map_server_dump_t mp)
static

Definition at line 927 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_pitr_set_locator_set_t_handler ( vl_api_one_pitr_set_locator_set_t mp)
static

Definition at line 403 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_rloc_probe_enable_disable_t_handler ( vl_api_one_rloc_probe_enable_disable_t mp)
static

Definition at line 357 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_stats_dump_t_handler ( vl_api_one_stats_dump_t mp)
static

Definition at line 1347 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_one_stats_enable_disable_t_handler ( vl_api_one_stats_enable_disable_t mp)
static

Definition at line 1310 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_one_use_petr_t_handler ( vl_api_one_use_petr_t mp)
static

Definition at line 418 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_show_one_map_register_state_t_handler ( vl_api_show_one_map_register_state_t mp)
static

Definition at line 1115 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_one_map_request_mode_t_handler ( vl_api_show_one_map_request_mode_t mp)
static

Definition at line 378 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_one_pitr_t_handler ( vl_api_show_one_pitr_t mp)
static

Definition at line 1247 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_show_one_rloc_probe_state_t_handler ( vl_api_show_one_rloc_probe_state_t mp)
static

Definition at line 1100 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_one_stats_enable_disable_t_handler ( vl_api_show_one_stats_enable_disable_t mp)
static

Definition at line 1295 of file one_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_show_one_status_t_handler ( vl_api_show_one_status_t mp)
static

Definition at line 1186 of file one_api.c.

+ Here is the call graph for this function:

static void vl_api_show_one_use_petr_t_handler ( vl_api_show_one_use_petr_t mp)
static

Definition at line 431 of file one_api.c.

+ Here is the call graph for this function:

VLIB_API_INIT_FUNCTION ( one_api_hookup  )

+ Here is the caller graph for this function: