16 #ifndef VNET_CONTROL_H_ 17 #define VNET_CONTROL_H_ 23 #define NUMBER_OF_RETRIES 1 24 #define PENDING_MREQ_EXPIRATION_TIME 3.0 25 #define PENDING_MREQ_QUEUE_LEN 5 27 #define PENDING_MREG_EXPIRATION_TIME 3.0 28 #define RLOC_PROBING_INTERVAL 60.0 33 #define QUICK_MAP_REGISTER_MSG_COUNT 3 34 #define QUICK_MAP_REGISTER_INTERVAL 3.0 37 #define MAP_REGISTER_INTERVAL 60.0 40 #define MAP_REGISTER_DEFAULT_TTL 900 97 #define foreach_lisp_flag_bit \ 98 _(USE_PETR, "Use Proxy-ETR") \ 99 _(STATS_ENABLED, "Statistics enabled") 103 #define _(sym, str) LISP_FLAG_BIT_##sym, 110 #define _(sym, str) LISP_FLAG_##sym = 1 << LISP_FLAG_BIT_##sym, 281 u32 * map_index_result);
285 u8 authoritative,
u32 ttl,
u8 is_add,
u8 is_static,
286 u32 * res_map_index);
u8 vnet_lisp_map_register_state_get(void)
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
locator_pair_t * locator_pairs
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
u32 * local_mappings_indexes
struct _vlib_node_registration vlib_node_registration_t
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
#define foreach_lisp_flag_bit
static lisp_cp_main_t * vnet_lisp_cp_get_main()
u8 vnet_lisp_get_map_request_mode(void)
u32 petr_map_index
Proxy ETR map index.
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
int vnet_lisp_set_map_request_mode(u8 mode)
u8 * key_by_mapping_index
u32 * local_locator_set_indexes
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
lisp_cp_main_t lisp_control_main
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
int vnet_lisp_add_del_mapping(gid_address_t *deid, locator_t *dlocs, u8 action, u8 authoritative, u32 ttl, u8 is_add, u8 is_static, u32 *res_map_index)
Adds/removes/updates mapping.
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)
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.
gid_dictionary_t mapping_index_by_gid
uword * l2_dp_intf_by_vni
locator_set_t * locator_set_pool
u32 ** locator_set_to_eids
fwd_entry_t * fwd_entry_pool
pending_map_request_t * pending_map_requests_pool
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
static mapping_t * lisp_get_petr_mapping(lisp_cp_main_t *lcm)
uword * locator_set_index_by_name
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)
uword * map_register_messages_by_nonce
clib_error_t * vnet_lisp_enable_disable(u8 is_enabled)
int vnet_lisp_clear_all_remote_adjacencies(void)
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_index)