16 #ifndef VNET_CONTROL_H_ 17 #define VNET_CONTROL_H_ 24 #define NUMBER_OF_RETRIES 1 25 #define PENDING_MREQ_EXPIRATION_TIME 3.0 26 #define PENDING_MREQ_QUEUE_LEN 5 28 #define RLOC_PROBING_INTERVAL 60.0 33 #define QUICK_MAP_REGISTER_MSG_COUNT 5 34 #define QUICK_MAP_REGISTER_INTERVAL 3.0 37 #define MAP_REGISTER_INTERVAL 60.0 40 #define MAX_EXPIRED_MAP_REGISTERS_DEFAULT 3 42 #define PENDING_MREG_EXPIRATION_TIME 3.0 45 #define MAP_REGISTER_DEFAULT_TTL 86400 119 #define foreach_lisp_flag_bit \ 120 _(USE_PETR, "Use Proxy-ETR") \ 121 _(XTR_MODE, "ITR/ETR mode") \ 122 _(PETR_MODE, "Proxy-ETR mode") \ 123 _(PITR_MODE, "Proxy-ITR mode") \ 124 _(STATS_ENABLED, "Statistics enabled") 128 #define _(sym, str) LISP_FLAG_BIT_##sym, 135 #define _(sym, str) LISP_FLAG_##sym = 1 << LISP_FLAG_BIT_##sym, 351 u32 * map_index_result);
u8 vnet_lisp_map_register_state_get(void)
int vnet_lisp_add_mapping(vnet_lisp_add_del_mapping_args_t *a, locator_t *rlocs, u32 *res_map_index, u8 *is_changed)
Adds/updates mapping.
u32 vnet_lisp_map_register_fallback_threshold_get(void)
map_records_arg_t ** map_records_args_pool
Per thread pool of records shared with thread0.
boost::asio::ip::address ip_address_t
int vnet_lisp_del_mapping(gid_address_t *eid, u32 *res_map_index)
Removes a mapping.
int vnet_lisp_enable_disable_pitr_mode(u8 is_enabled)
u32 * lcl_to_rmt_adjs_by_lcl_idx
int vnet_lisp_enable_disable_xtr_mode(u8 is_enabled)
int vnet_lisp_add_del_map_table_key(gid_address_t *eid, char *key, u8 is_add)
int vnet_lisp_add_del_locator(vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_index)
int vnet_lisp_add_del_map_server(ip_address_t *addr, u8 is_add)
ip_address_t active_map_resolver
lisp_msmr_t * map_resolvers
int vnet_lisp_add_del_l2_arp_ndp_entry(gid_address_t *key, u8 *mac, u8 is_add)
locator_pair_t * locator_pairs
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
lisp_api_ndp_entry_t * vnet_lisp_ndp_entries_get_by_bd(u32 bd)
u32 * local_mappings_indexes
vlib_node_registration_t lisp_cp_lookup_ip6_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip6_node)
clib_error_t * lisp_cp_init()
int vnet_lisp_map_register_enable_disable(u8 is_enable)
enum lisp_flag_bits lisp_flag_bits_e
lisp_msmr_t * map_servers
u32 ** locator_to_locator_sets
vlib_node_registration_t lisp_cp_lookup_ip4_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip4_node)
void get_src_and_dst_eids_from_buffer(lisp_cp_main_t *lcm, vlib_buffer_t *b, gid_address_t *src, gid_address_t *dst, u16 type)
u32 * fwd_entry_by_mapping_index
int vnet_lisp_map_register_set_ttl(u32 ttl)
u32 expired_map_registers
#define foreach_lisp_flag_bit
static lisp_cp_main_t * vnet_lisp_cp_get_main()
u8 do_map_server_election
u8 vnet_lisp_get_map_request_mode(void)
u32 petr_map_index
Proxy ETR map index used for 'use-petr'.
enum lisp_flags lisp_flags_e
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u8 vnet_lisp_enable_disable_status(void)
u8 do_map_resolver_election
u8 vnet_lisp_get_pitr_mode(void)
map_records_arg_t * parse_map_reply(vlib_buffer_t *b)
int vnet_lisp_set_map_request_mode(u8 mode)
u8 * key_by_mapping_index
u32 * local_locator_set_indexes
lisp_api_l2_arp_entry_t * vnet_lisp_l2_arp_entries_get_by_bd(u32 bd)
lisp_transport_protocol_t vnet_lisp_get_transport_protocol(void)
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
lisp_cp_main_t lisp_control_main
u32 vnet_lisp_set_transport_protocol(u8 protocol)
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
uword * pending_map_requests_by_nonce
int vnet_lisp_map_cache_add_del(vnet_lisp_add_del_mapping_args_t *a, u32 *map_index)
Add/remove mapping to/from map-cache.
int vnet_lisp_eid_table_map(u32 vni, u32 vrf, u8 is_l2, u8 is_add)
u32 * vnet_lisp_l2_arp_bds_get(void)
int vnet_lisp_nsh_set_locator_set(u8 *locator_set_name, u8 is_add)
lisp_transport_protocol_t
int vnet_lisp_pitr_set_locator_set(u8 *locator_set_name, u8 is_add)
u8 vnet_lisp_rloc_probe_state_get(void)
int vnet_lisp_add_del_map_resolver(vnet_lisp_add_del_map_resolver_args_t *a)
struct _gid_address_t gid_address_t
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.
int vnet_lisp_enable_disable_petr_mode(u8 is_enabled)
lisp_transport_protocol_t transport_protocol
either UDP based or binary API.
gid_dictionary_t mapping_index_by_gid
uword * l2_dp_intf_by_vni
u32 vnet_lisp_map_register_get_ttl(void)
locator_set_t * locator_set_pool
u32 ** locator_set_to_eids
pending_map_register_t * pending_map_registers_pool
fwd_entry_t * fwd_entry_pool
pending_map_request_t * pending_map_requests_pool
struct _vlib_node_registration vlib_node_registration_t
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
ip_address_t active_map_server
static mapping_t * lisp_get_petr_mapping(lisp_cp_main_t *lcm)
uword * locator_set_index_by_name
u8 vnet_lisp_get_petr_mode(void)
int vnet_lisp_add_del_adjacency(vnet_lisp_add_del_adjacency_args_t *a)
Adds adjacency or removes forwarding entry associated to remote mapping.
vlib_node_registration_t lisp_cp_input_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_input_node)
u32 ** lcl_to_rmt_adjacencies
uword * map_register_messages_by_nonce
clib_error_t * vnet_lisp_enable_disable(u8 is_enabled)
u8 vnet_lisp_get_xtr_mode(void)
int vnet_lisp_clear_all_remote_adjacencies(void)
u32 max_expired_map_registers
u32 * vnet_lisp_ndp_bds_get(void)
int vnet_lisp_map_register_fallback_threshold_set(u32 value)
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_index)