30 #define vl_api_one_remote_locator_t_endian vl_noop_handler 31 #define vl_api_one_remote_locator_t_print vl_noop_handler 32 #define vl_api_one_local_locator_t_endian vl_noop_handler 33 #define vl_api_one_local_locator_t_print vl_noop_handler 35 #define vl_api_one_add_del_locator_set_t_endian vl_noop_handler 36 #define vl_api_one_add_del_locator_set_t_print vl_noop_handler 37 #define vl_api_one_add_del_remote_mapping_t_endian vl_noop_handler 38 #define vl_api_one_add_del_remote_mapping_t_print vl_noop_handler 40 #define vl_api_one_add_del_locator_set_t_endian vl_noop_handler 41 #define vl_api_one_add_del_locator_set_t_print vl_noop_handler 42 #define vl_api_one_add_del_remote_mapping_t_endian vl_noop_handler 43 #define vl_api_one_add_del_remote_mapping_t_print vl_noop_handler 45 #define vl_api_one_l2_arp_entry_t_endian vl_noop_handler 46 #define vl_api_one_l2_arp_entry_t_print vl_noop_handler 47 #define vl_api_one_add_del_l2_arp_entry vl_noop_handler 48 #define vl_api_one_l2_arp_bd_get vl_noop_handler 50 #define vl_api_one_ndp_entry_t_endian vl_noop_handler 51 #define vl_api_one_ndp_entry_t_print vl_noop_handler 52 #define vl_api_one_ndp_entries_get_reply_t_endian vl_noop_handler 53 #define vl_api_one_ndp_entries_get_reply_t_print vl_noop_handler 64 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 71 #define REPLY_DETAILS(t, body) \ 73 vl_api_registration_t * reg; \ 74 rv = vl_msg_api_pd_handler (mp, rv); \ 75 reg = vl_api_client_index_to_registration (mp->client_index); \ 79 rmp = vl_msg_api_alloc (sizeof (*rmp)); \ 80 rmp->_vl_msg_id = ntohs((t)); \ 81 rmp->context = mp->context; \ 82 do {body;} while (0); \ 83 vl_api_send_msg (reg, (u8 *)&rmp); \ 86 #define foreach_vpe_api_msg \ 87 _(ONE_ADD_DEL_LOCATOR_SET, one_add_del_locator_set) \ 88 _(ONE_ADD_DEL_LOCATOR, one_add_del_locator) \ 89 _(ONE_ADD_DEL_LOCAL_EID, one_add_del_local_eid) \ 90 _(ONE_ADD_DEL_MAP_RESOLVER, one_add_del_map_resolver) \ 91 _(ONE_ADD_DEL_MAP_SERVER, one_add_del_map_server) \ 92 _(ONE_ENABLE_DISABLE, one_enable_disable) \ 93 _(ONE_RLOC_PROBE_ENABLE_DISABLE, one_rloc_probe_enable_disable) \ 94 _(ONE_MAP_REGISTER_ENABLE_DISABLE, one_map_register_enable_disable) \ 95 _(ONE_MAP_REGISTER_FALLBACK_THRESHOLD, \ 96 one_map_register_fallback_threshold) \ 97 _(ONE_ADD_DEL_REMOTE_MAPPING, one_add_del_remote_mapping) \ 98 _(ONE_ADD_DEL_ADJACENCY, one_add_del_adjacency) \ 99 _(ONE_PITR_SET_LOCATOR_SET, one_pitr_set_locator_set) \ 100 _(ONE_NSH_SET_LOCATOR_SET, one_nsh_set_locator_set) \ 101 _(ONE_MAP_REQUEST_MODE, one_map_request_mode) \ 102 _(ONE_EID_TABLE_ADD_DEL_MAP, one_eid_table_add_del_map) \ 103 _(ONE_LOCATOR_SET_DUMP, one_locator_set_dump) \ 104 _(ONE_LOCATOR_DUMP, one_locator_dump) \ 105 _(ONE_EID_TABLE_DUMP, one_eid_table_dump) \ 106 _(ONE_MAP_RESOLVER_DUMP, one_map_resolver_dump) \ 107 _(ONE_MAP_SERVER_DUMP, one_map_server_dump) \ 108 _(ONE_EID_TABLE_MAP_DUMP, one_eid_table_map_dump) \ 109 _(ONE_EID_TABLE_VNI_DUMP, one_eid_table_vni_dump) \ 110 _(ONE_ADJACENCIES_GET, one_adjacencies_get) \ 111 _(ONE_MAP_REGISTER_SET_TTL, one_map_register_set_ttl) \ 112 _(SHOW_ONE_NSH_MAPPING, show_one_nsh_mapping) \ 113 _(SHOW_ONE_RLOC_PROBE_STATE, show_one_rloc_probe_state) \ 114 _(SHOW_ONE_MAP_REGISTER_STATE, show_one_map_register_state) \ 115 _(SHOW_ONE_MAP_REGISTER_TTL, show_one_map_register_ttl) \ 116 _(SHOW_ONE_MAP_REGISTER_FALLBACK_THRESHOLD, \ 117 show_one_map_register_fallback_threshold) \ 118 _(SHOW_ONE_STATUS, show_one_status) \ 119 _(ONE_ADD_DEL_MAP_REQUEST_ITR_RLOCS, \ 120 one_add_del_map_request_itr_rlocs) \ 121 _(ONE_GET_MAP_REQUEST_ITR_RLOCS, one_get_map_request_itr_rlocs) \ 122 _(SHOW_ONE_PITR, show_one_pitr) \ 123 _(SHOW_ONE_MAP_REQUEST_MODE, show_one_map_request_mode) \ 124 _(ONE_USE_PETR, one_use_petr) \ 125 _(SHOW_ONE_USE_PETR, show_one_use_petr) \ 126 _(SHOW_ONE_STATS_ENABLE_DISABLE, show_one_stats_enable_disable) \ 127 _(ONE_STATS_ENABLE_DISABLE, one_stats_enable_disable) \ 128 _(ONE_STATS_DUMP, one_stats_dump) \ 129 _(ONE_STATS_FLUSH, one_stats_flush) \ 130 _(ONE_L2_ARP_BD_GET, one_l2_arp_bd_get) \ 131 _(ONE_L2_ARP_ENTRIES_GET, one_l2_arp_entries_get) \ 132 _(ONE_ADD_DEL_L2_ARP_ENTRY, one_add_del_l2_arp_entry) \ 133 _(ONE_ADD_DEL_NDP_ENTRY, one_add_del_ndp_entry) \ 134 _(ONE_NDP_BD_GET, one_ndp_bd_get) \ 135 _(ONE_NDP_ENTRIES_GET, one_ndp_entries_get) \ 136 _(ONE_SET_TRANSPORT_PROTOCOL, one_set_transport_protocol) \ 137 _(ONE_GET_TRANSPORT_PROTOCOL, one_get_transport_protocol) \ 138 _(ONE_ENABLE_DISABLE_XTR_MODE, one_enable_disable_xtr_mode) \ 139 _(ONE_SHOW_XTR_MODE, one_show_xtr_mode) \ 140 _(ONE_ENABLE_DISABLE_PITR_MODE, one_enable_disable_pitr_mode) \ 141 _(ONE_SHOW_PITR_MODE, one_show_pitr_mode) \ 142 _(ONE_ENABLE_DISABLE_PETR_MODE, one_enable_disable_petr_mode) \ 143 _(ONE_SHOW_PETR_MODE, one_show_petr_mode) \ 153 for (i = 0; i < rloc_num; i++)
157 memset (&loc, 0,
sizeof (loc));
172 vl_api_one_map_register_set_ttl_reply_t *rmp;
175 mp->
ttl = clib_net_to_host_u32 (mp->
ttl);
178 REPLY_MACRO (VL_API_ONE_MAP_REGISTER_SET_TTL_REPLY);
192 rmp->
ttl = clib_host_to_net_u32 (ttl);
206 u32 ls_index = ~0, locator_num;
210 memset (a, 0,
sizeof (a[0]));
216 a->
name = locator_name;
219 locator_num = clib_net_to_host_u32 (mp->
locator_num);
221 memset (&locator, 0,
sizeof (locator));
222 for (i = 0; i < locator_num; i++)
244 rmp->
ls_index = clib_host_to_net_u32 (ls_index);
252 vl_api_one_add_del_locator_reply_t *rmp;
259 memset (&locator, 0,
sizeof (locator));
260 memset (a, 0,
sizeof (a[0]));
272 a->
name = locator_name;
323 return VNET_API_ERROR_INVALID_VALUE;
334 vl_api_one_add_del_local_eid_reply_t *rmp;
339 u32 locator_set_index = ~0, map_index = ~0;
342 memset (a, 0,
sizeof (a[0]));
343 memset (eid, 0,
sizeof (eid[0]));
352 rv = VNET_API_ERROR_INVALID_VALUE;
362 rv = VNET_API_ERROR_INVALID_VALUE;
365 locator_set_index = p[0];
392 vl_api_one_eid_table_add_del_map_reply_t *rmp;
395 clib_net_to_host_u32 (mp->
dp_table),
397 REPLY_MACRO (VL_API_ONE_EID_TABLE_ADD_DEL_MAP_REPLY)}
402 vl_api_one_add_del_map_server_reply_t *rmp;
406 memset (&addr, 0,
sizeof (addr));
418 vl_api_one_add_del_map_resolver_reply_t *rmp;
422 memset (a, 0,
sizeof (a[0]));
429 REPLY_MACRO (VL_API_ONE_ADD_DEL_MAP_RESOLVER_REPLY);
436 vl_api_one_map_register_enable_disable_reply_t *rmp;
447 vl_api_one_rloc_probe_enable_disable_reply_t *rmp;
457 vl_api_one_enable_disable_reply_t *rmp;
482 vl_api_one_map_request_mode_reply_t *rmp;
494 vl_api_one_nsh_set_locator_set_reply_t *rmp;
504 REPLY_MACRO (VL_API_ONE_PITR_SET_LOCATOR_SET_REPLY);
511 vl_api_one_pitr_set_locator_set_reply_t *rmp;
521 REPLY_MACRO (VL_API_ONE_PITR_SET_LOCATOR_SET_REPLY);
527 vl_api_one_use_petr_reply_t *rmp;
549 memset (&addr, 0,
sizeof (addr));
550 status = lcm->
flags & LISP_FLAG_USE_PETR;
592 vl_api_one_add_del_map_request_itr_rlocs_reply_t *rmp;
594 u8 *locator_set_name =
NULL;
608 REPLY_MACRO (VL_API_ONE_ADD_DEL_MAP_REQUEST_ITR_RLOCS_REPLY);
616 vl_api_one_add_del_remote_mapping_reply_t *rmp;
619 u32 rloc_num = clib_net_to_host_u32 (mp->
rloc_num);
621 memset (eid, 0,
sizeof (eid[0]));
633 memset (a, 0,
sizeof (a[0]));
648 memset (m_args, 0,
sizeof (m_args[0]));
665 REPLY_MACRO (VL_API_ONE_ADD_DEL_REMOTE_MAPPING_REPLY);
671 vl_api_one_add_del_adjacency_reply_t *rmp;
675 memset (a, 0,
sizeof (a[0]));
700 memset (rmp, 0,
sizeof (*rmp));
701 rmp->_vl_msg_id = ntohs (VL_API_ONE_LOCATOR_DETAILS);
728 u32 ls_index = ~0, *locit = 0;
773 memset (rmp, 0,
sizeof (*rmp));
774 rmp->_vl_msg_id = ntohs (VL_API_ONE_LOCATOR_SET_DETAILS);
781 strncpy ((
char *) rmp->
ls_name, (
char *) lsit->
name,
786 str =
format (0,
"<remote-%d>", ls_index);
810 if (filter && !((1 == filter && lsit->local) ||
811 (2 == filter && !lsit->local)))
838 prefix_length[0] = 0;
884 ip_prefix_t *ip_prefix =
NULL;
903 clib_warning (
"Filter error, unknown filter: %d", filter);
912 memset (rmp, 0,
sizeof (*rmp));
913 rmp->_vl_msg_id = ntohs (VL_API_ONE_EID_TABLE_DETAILS);
922 rmp->
ttl = clib_host_to_net_u32 (mapit->
ttl);
988 memset (eid, 0,
sizeof (*eid));
1006 send_one_eid_table_details(mapit, reg, mp->context,
1020 memset (rmp, 0,
sizeof (*rmp));
1021 rmp->_vl_msg_id = ntohs (VL_API_ONE_MAP_SERVER_DETAILS);
1069 memset (rmp, 0,
sizeof (*rmp));
1070 rmp->_vl_msg_id = ntohs (VL_API_ONE_MAP_RESOLVER_DETAILS);
1118 memset (rmp, 0,
sizeof (*rmp));
1119 rmp->_vl_msg_id = ntohs (VL_API_ONE_EID_TABLE_MAP_DETAILS);
1121 rmp->
vni = clib_host_to_net_u32 (p->
key);
1133 uword *vni_table = 0;
1162 memset (rmp, 0,
sizeof (*rmp));
1163 rmp->_vl_msg_id = ntohs (VL_API_ONE_EID_TABLE_VNI_DETAILS);
1165 rmp->
vni = clib_host_to_net_u32 (vni);
1177 for (i = 0; i < n; i++)
1180 memset (&a, 0,
sizeof (a));
1245 REPLY_MACRO2 (VL_API_SHOW_ONE_MAP_REGISTER_STATE_REPLY,
1259 u32 vni = clib_net_to_host_u32 (mp->
vni);
1290 hash_set (vnis, p->key, 0);
1295 hash_set (vnis, p->key, 0);
1334 tmp_str =
format (0,
" ");
1344 REPLY_MACRO2(VL_API_ONE_GET_MAP_REQUEST_ITR_RLOCS_REPLY,
1367 tmp_str =
format (0,
"N/A");
1381 tmp_str =
format (0,
"N/A");
1406 u8 is_enabled = (lcm->
flags & LISP_FLAG_PITR_MODE)
1411 tmp_str =
format (0,
"N/A");
1424 tmp_str =
format (0,
"N/A");
1447 REPLY_MACRO2 (VL_API_SHOW_ONE_STATS_ENABLE_DISABLE_REPLY,
1458 vl_api_one_enable_disable_reply_t *rmp =
NULL;
1495 vl_api_one_stats_flush_reply_t *rmp;
1519 rmp->
vni = clib_host_to_net_u32 (stat->
vni);
1536 vl_api_one_add_del_l2_arp_entry_reply_t *rmp;
1539 memset (arp, 0,
sizeof (*arp));
1549 REPLY_MACRO (VL_API_ONE_ADD_DEL_L2_ARP_ENTRY_REPLY);
1555 vl_api_one_add_del_ndp_entry_reply_t *rmp;
1558 memset (g, 0,
sizeof (*g));
1627 u32 bd = clib_net_to_host_u32 (mp->
bd);
1633 REPLY_MACRO4 (VL_API_ONE_L2_ARP_ENTRIES_GET_REPLY, size,
1652 vl_api_one_map_register_fallback_threshold_reply_t *rmp;
1655 mp->
value = clib_net_to_host_u32 (mp->
value);
1657 REPLY_MACRO (VL_API_ONE_MAP_REGISTER_FALLBACK_THRESHOLD_REPLY);
1670 REPLY_MACRO2 (VL_API_SHOW_ONE_MAP_REGISTER_FALLBACK_THRESHOLD_REPLY,
1672 rmp->
value = clib_host_to_net_u32 (value);
1681 vl_api_one_set_transport_protocol_reply_t *rmp;
1686 REPLY_MACRO (VL_API_ONE_SET_TRANSPORT_PROTOCOL_REPLY);
1713 u32 bd = clib_net_to_host_u32 (mp->
bd);
1738 vl_api_one_enable_disable_xtr_mode_reply_t *rmp = 0;
1741 REPLY_MACRO (VL_API_ONE_ENABLE_DISABLE_XTR_MODE_REPLY);
1762 vl_api_one_enable_disable_pitr_mode_reply_t *rmp = 0;
1765 REPLY_MACRO (VL_API_ONE_ENABLE_DISABLE_PITR_MODE_REPLY);
1786 vl_api_one_enable_disable_petr_mode_reply_t *rmp = 0;
1789 REPLY_MACRO (VL_API_ONE_ENABLE_DISABLE_PETR_MODE_REPLY);
1813 #define vl_msg_name_crc_list 1815 #undef vl_msg_name_crc_list 1820 #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); 1821 foreach_vl_msg_name_crc_one;
1831 vl_msg_api_set_handlers(VL_API_##N, #n, \ 1832 vl_api_##n##_t_handler, \ 1834 vl_api_##n##_t_endian, \ 1835 vl_api_##n##_t_print, \ 1836 sizeof(vl_api_##n##_t), 1);
static void one_fid_put_api(u8 *dst, fid_address_t *src, u8 *prefix_length)
static void vl_api_one_eid_table_dump_t_handler(vl_api_one_eid_table_dump_t *mp)
vl_api_one_ndp_entry_t entries[count]
static void vl_api_one_eid_table_add_del_map_t_handler(vl_api_one_eid_table_add_del_map_t *mp)
Add/delete L2 ARP entries.
#define gid_address_ip_version(_a)
Get ONE map request itr rlocs status.
u8 vnet_lisp_get_pitr_mode(void)
#define gid_address_type(_a)
Status of ONE PITR, enable or disable.
static void vl_api_one_enable_disable_pitr_mode_t_handler(vl_api_one_enable_disable_pitr_mode_t *mp)
enable or disable ONE feature
static void vl_api_one_rloc_probe_enable_disable_t_handler(vl_api_one_rloc_probe_enable_disable_t *mp)
u8 vnet_lisp_gpe_enable_disable_status(void)
Check if LISP-GPE is enabled.
lisp_api_l2_arp_entry_t * vnet_lisp_l2_arp_entries_get_by_bd(u32 bd)
add or delete map request itr rlocs
Reply with list of bridge domains used by L2 ARP table.
lisp_msmr_t * map_resolvers
static void vl_api_one_stats_enable_disable_t_handler(vl_api_one_stats_enable_disable_t *mp)
Get TTL for map register messages.
u32 vnet_lisp_set_transport_protocol(u8 protocol)
configure or delete ONE NSH mapping
static void vl_api_one_add_del_local_eid_t_handler(vl_api_one_add_del_local_eid_t *mp)
static void send_one_locator_set_details(lisp_cp_main_t *lcm, locator_set_t *lsit, vl_api_registration_t *reg, u32 context, u32 ls_index)
#define REPLY_MACRO4(t, n, body)
static void vl_api_one_add_del_ndp_entry_t_handler(vl_api_one_add_del_ndp_entry_t *mp)
static void vl_api_one_enable_disable_petr_mode_t_handler(vl_api_one_enable_disable_petr_mode_t *mp)
static void send_eid_table_vni(u32 vni, vl_api_registration_t *reg, u32 context)
add or delete locator_set
static void vl_api_one_ndp_entries_get_t_handler(vl_api_one_ndp_entries_get_t *mp)
static void vl_api_one_add_del_map_server_t_handler(vl_api_one_add_del_map_server_t *mp)
#define REPLY_MACRO2(t, body)
enable/disable ONE map-register
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
static void setup_message_id_table(api_main_t *am)
u8 vnet_lisp_get_map_request_mode(void)
#define ip_prefix_len(_a)
reply to one_eid_table_vni_dump
#define vec_terminate_c_string(V)
(If necessary) NULL terminate a vector containing a c-string.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
add or delete ONE eid-table
static void vl_api_one_locator_dump_t_handler(vl_api_one_locator_dump_t *mp)
static void vl_api_one_show_pitr_mode_t_handler(vl_api_one_show_pitr_mode_t *mp)
Request for map server summary status.
#define foreach_vpe_api_msg
static void vl_api_one_set_transport_protocol_t_handler(vl_api_one_set_transport_protocol_t *mp)
static void vl_api_show_one_status_t_handler(vl_api_show_one_status_t *mp)
vnet_api_error_t vnet_lisp_stats_enable_disable(u8 enable)
int vnet_lisp_add_mapping(vnet_lisp_add_del_mapping_args_t *a, locator_t *rlocs, u32 *res_map_index, u8 *is_updated)
Adds/updates mapping.
void ip_address_set(ip_address_t *dst, const void *src, u8 version)
Reply for ONE NSH mapping.
static void vl_api_show_one_map_request_mode_t_handler(vl_api_show_one_map_request_mode_t *mp)
static clib_error_t * one_api_hookup(vlib_main_t *vm)
void * vl_msg_api_alloc(int nbytes)
#define ip_prefix_version(_a)
u8 vnet_lisp_stats_enable_disable_state(void)
u8 vnet_lisp_map_register_state_get(void)
u8 vnet_lisp_get_petr_mode(void)
int vnet_lisp_set_map_request_mode(u8 mode)
int vnet_lisp_add_del_adjacency(vnet_lisp_add_del_adjacency_args_t *a)
Adds adjacency or removes forwarding entry associated to remote mapping.
configure or disable use of PETR
static void vl_api_one_get_transport_protocol_t_handler(vl_api_one_get_transport_protocol_t *mp)
Request for L2 ARP entries from specified bridge domain.
Request for map request itr rlocs summary status.
lisp_msmr_t * map_servers
lisp_transport_protocol_t vnet_lisp_get_transport_protocol(void)
int vnet_lisp_enable_disable_petr_mode(u8 is_enabled)
static void vl_api_one_adjacencies_get_t_handler(vl_api_one_adjacencies_get_t *mp)
static void send_one_eid_table_details(mapping_t *mapit, vl_api_registration_t *reg, u32 context, u8 filter)
int vnet_lisp_enable_disable_pitr_mode(u8 is_enabled)
static void send_one_map_resolver_details(ip_address_t *ip, vl_api_registration_t *reg, u32 context)
static void vl_api_one_l2_arp_bd_get_t_handler(vl_api_one_l2_arp_bd_get_t *mp)
#define pool_foreach(VAR, POOL, BODY)
Iterate through pool.
static void vl_api_one_get_map_request_itr_rlocs_t_handler(vl_api_one_get_map_request_itr_rlocs_t *mp)
Request for ONE map-request mode.
Request for ONE adjacencies.
Request for one_eid_table_map_details.
int vnet_lisp_flush_stats(void)
#define gid_address_sd_src(_a)
static void vl_api_one_add_del_map_resolver_t_handler(vl_api_one_add_del_map_resolver_t *mp)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
static void vl_api_one_map_register_set_ttl_t_handler(vl_api_one_map_register_set_ttl_t *mp)
int vnet_lisp_eid_table_map(u32 vni, u32 dp_id, u8 is_l2, u8 is_add)
Dumps all VNIs used in mappings.
lisp_api_ndp_entry_t * vnet_lisp_ndp_entries_get_by_bd(u32 bd)
static void vl_api_one_enable_disable_t_handler(vl_api_one_enable_disable_t *mp)
static void vl_api_one_add_del_adjacency_t_handler(vl_api_one_add_del_adjacency_t *mp)
static void vl_api_one_map_register_fallback_threshold_t_handler(vl_api_one_map_register_fallback_threshold_t *mp)
static void vl_api_one_map_resolver_dump_t_handler(vl_api_one_map_resolver_dump_t *mp)
static lisp_cp_main_t * vnet_lisp_cp_get_main()
static int unformat_one_eid_api(gid_address_t *dst, u32 vni, u8 type, void *src, u8 len)
add or delete ONE adjacency adjacency
vl_api_one_local_locator_t locators[locator_num]
u32 petr_map_index
Proxy ETR map index used for 'use-petr'.
#define ip_addr_version(_a)
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 send_eid_table_map_pair(hash_pair_t *p, vl_api_registration_t *reg, u32 context)
Reply with list of bridge domains used by neighbor discovery.
clib_error_t * vnet_lisp_enable_disable(u8 is_enable)
static void vl_api_one_map_register_enable_disable_t_handler(vl_api_one_map_register_enable_disable_t *mp)
void ip_address_copy_addr(void *dst, const ip_address_t *src)
int vnet_lisp_pitr_set_locator_set(u8 *locator_set_name, u8 is_add)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u8 vnet_lisp_rloc_probe_state_get(void)
u32 bridge_domains[count]
static void send_one_locator_details(lisp_cp_main_t *lcm, locator_t *loc, vl_api_registration_t *reg, u32 context)
counter_t packets
packet counter
#define gid_address_arp_ndp_ip(_a)
static void vl_api_one_eid_table_vni_dump_t_handler(vl_api_one_eid_table_vni_dump_t *mp)
#define gid_address_mac(_a)
Set TTL for map register messages.
static u8 fid_type_to_api_type(fid_address_t *fid)
int vnet_lisp_add_del_local_mapping(vnet_lisp_add_del_mapping_args_t *a, u32 *map_index_result)
Add/update/delete mapping to/in/from map-cache.
Request for ONE PITR status.
void gid_address_free(gid_address_t *a)
static void vl_api_one_add_del_remote_mapping_t_handler(vl_api_one_add_del_remote_mapping_t *mp)
Request for ONE PETR status.
lisp_api_stats_t * vnet_lisp_get_stats(void)
set ONE map-request mode.
u8 vnet_lisp_get_xtr_mode(void)
Reply for show_one_rloc_probe_state.
add or delete map-resolver
void ip_prefix_normalize(ip_prefix_t *a)
VLIB_API_INIT_FUNCTION(one_api_hookup)
#define gid_address_ippref(_a)
static void vl_api_show_one_map_register_fallback_threshold_t_handler(vl_api_show_one_map_register_fallback_threshold_t *mp)
API main structure, used by both vpp and binary API clients.
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
static void vl_api_one_ndp_bd_get_t_handler(vl_api_one_ndp_bd_get_t *mp)
An API client registration, only in vpp/vlib.
#define BAD_SW_IF_INDEX_LABEL
Request for map one locator status.
u32 * vnet_lisp_ndp_bds_get(void)
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
Shows relationship between vni and vrf/bd.
vl_api_one_remote_locator_t rlocs[rloc_num]
static void vl_api_one_use_petr_t_handler(vl_api_one_use_petr_t *mp)
#define gid_address_arp_bd
void gid_address_ip_set(gid_address_t *dst, void *src, u8 version)
Get state of ONE map-register.
#define vec_free(V)
Free vector's memory (no header).
Request for ONE NSH mapping.
static void send_one_map_server_details(ip_address_t *ip, vl_api_registration_t *reg, u32 context)
#define gid_address_ippref_len(_a)
Request for list of bridge domains used by L2 ARP table.
u32 bridge_domains[count]
#define clib_warning(format, args...)
#define clib_memcpy(a, b, c)
vl_api_one_l2_arp_entry_t entries[count]
#define fid_addr_ip_version(_a)
int vnet_lisp_map_register_enable_disable(u8 is_enable)
u32 vnet_lisp_map_register_fallback_threshold_get(void)
Reply for show_one_map_request_mode.
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
#define gid_address_nsh_si(_a)
static void vl_api_one_enable_disable_xtr_mode_t_handler(vl_api_one_enable_disable_xtr_mode_t *mp)
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_stats_enable_disable_t_handler(vl_api_show_one_stats_enable_disable_t *mp)
#define fid_addr_ippref(_a)
u8 vnet_lisp_enable_disable_status(void)
Reply with L2 ARP entries from specified bridge domain.
int vnet_lisp_enable_disable_xtr_mode(u8 is_enabled)
struct _gid_address_t gid_address_t
static void vl_api_show_one_map_register_ttl_t_handler(vl_api_show_one_map_register_ttl_t *mp)
int vnet_lisp_add_del_map_server(ip_address_t *addr, u8 is_add)
static uword hash_elts(void *v)
#define fid_addr_type(_a)
static void vl_api_show_one_map_register_state_t_handler(vl_api_show_one_map_register_state_t *mp)
int vnet_lisp_clear_all_remote_adjacencies(void)
map/unmap vni/bd_index to vrf
#define gid_address_sd_dst(_a)
gid_dictionary_t mapping_index_by_gid
#define REPLY_DETAILS(t, body)
locator_set_t * locator_set_pool
static void vl_api_one_nsh_set_locator_set_t_handler(vl_api_one_nsh_set_locator_set_t *mp)
#define gid_address_ndp_bd
static void vl_api_one_show_xtr_mode_t_handler(vl_api_one_show_xtr_mode_t *mp)
static void vl_api_one_add_del_l2_arp_entry_t_handler(vl_api_one_add_del_l2_arp_entry_t *mp)
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
static void vl_api_one_locator_set_dump_t_handler(vl_api_one_locator_set_dump_t *mp)
Get state of ONE RLOC probing.
ONE PETR status, enable or disable.
u64 gid_dictionary_lookup(gid_dictionary_t *db, gid_address_t *key)
static void vl_api_one_stats_dump_t_handler(vl_api_one_stats_dump_t *mp)
int vnet_lisp_map_register_fallback_threshold_set(u32 value)
add or delete remote static mapping
static void vl_api_one_eid_table_map_dump_t_handler(vl_api_one_eid_table_map_dump_t *mp)
counter_t bytes
byte counter
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_result)
#define gid_address_ip(_a)
#define gid_address_vni(_a)
static void vl_api_show_one_nsh_mapping_t_handler(vl_api_show_one_nsh_mapping_t *mp)
add or delete locator for locator set
static void vl_api_one_add_del_locator_set_t_handler(vl_api_one_add_del_locator_set_t *mp)
Reply for locator_set add/del.
Request for map resolver summary status.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define hash_foreach_pair(p, v, body)
Iterate over hash pairs.
static void vl_api_one_add_del_locator_t_handler(vl_api_one_add_del_locator_t *mp)
enable/disable ONE RLOC probing
#define gid_address_nsh_spi(_a)
int vnet_lisp_del_mapping(gid_address_t *eid, u32 *res_map_index)
Removes a mapping.
u32 * vnet_lisp_l2_arp_bds_get(void)
int vnet_lisp_add_del_locator(vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_result)
uword * locator_set_index_by_name
int vnet_lisp_nsh_set_locator_set(u8 *locator_set_name, u8 is_add)
void gid_address_copy(gid_address_t *dst, gid_address_t *src)
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_l2_arp_entries_get_t_handler(vl_api_one_l2_arp_entries_get_t *mp)
#define hash_get_mem(h, key)
void mac_copy(void *dst, void *src)
static void vl_api_one_show_petr_mode_t_handler(vl_api_one_show_petr_mode_t *mp)
int vnet_lisp_add_del_map_resolver(vnet_lisp_add_del_map_resolver_args_t *a)
static void vl_api_show_one_pitr_t_handler(vl_api_show_one_pitr_t *mp)
int vnet_lisp_add_del_l2_arp_ndp_entry(gid_address_t *key, u8 *mac, u8 is_add)
#define vec_foreach(var, vec)
Vector iterator.
#define fid_addr_prefix_length(_a)
Set ONE transport protocol.
static void vl_api_show_one_use_petr_t_handler(vl_api_show_one_use_petr_t *mp)
Request for eid table summary status.
Request for locator_set summary status.
Contains current TTL for map register messages.
Request for list of bridge domains used by neighbor discovery.
static void vl_api_one_stats_flush_t_handler(vl_api_one_stats_flush_t *mp)
int vnet_lisp_map_register_set_ttl(u32 ttl)
u32 vnet_lisp_map_register_get_ttl(void)
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
static locator_t * unformat_one_locs(vl_api_one_remote_locator_t *rmt_locs, u32 rloc_num)
Reply for show_one_map_register_state.
static void lisp_fid_addr_to_api(fid_address_t *fid, u8 *dst, u8 *api_eid_type, u8 *prefix_length)
configure or disable ONE PITR node
#define VALIDATE_SW_IF_INDEX(mp)
vl_api_one_adjacency_t adjacencies[count]
static void one_adjacency_copy(vl_api_one_adjacency_t *dst, lisp_adjacency_t *adjs)
static void vl_api_one_map_server_dump_t_handler(vl_api_one_map_server_dump_t *mp)