|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef VNET_CONTROL_H_
17 #define VNET_CONTROL_H_
25 #define NUMBER_OF_RETRIES 1
26 #define PENDING_MREQ_EXPIRATION_TIME 3.0
27 #define PENDING_MREQ_QUEUE_LEN 5
29 #define RLOC_PROBING_INTERVAL 60.0
34 #define QUICK_MAP_REGISTER_MSG_COUNT 5
35 #define QUICK_MAP_REGISTER_INTERVAL 3.0
38 #define MAP_REGISTER_INTERVAL 60.0
41 #define MAX_EXPIRED_MAP_REGISTERS_DEFAULT 3
43 #define PENDING_MREG_EXPIRATION_TIME 3.0
46 #define MAP_REGISTER_DEFAULT_TTL 86400
120 #define foreach_lisp_flag_bit \
121 _(USE_PETR, "Use Proxy-ETR") \
122 _(XTR_MODE, "ITR/ETR mode") \
123 _(PETR_MODE, "Proxy-ETR mode") \
124 _(PITR_MODE, "Proxy-ITR mode") \
125 _(STATS_ENABLED, "Statistics enabled")
129 #define _(sym, str) LISP_FLAG_BIT_##sym,
136 #define _(sym, str) LISP_FLAG_##sym = 1 << LISP_FLAG_BIT_##sym,
270 TWT (tw_timer_wheel) wheel;
355 u32 * map_index_result);
int vnet_lisp_del_mapping(gid_address_t *eid, u32 *res_map_index)
Removes a mapping.
u32 * vnet_lisp_ndp_bds_get(void)
vlib_node_registration_t lisp_cp_lookup_ip6_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip6_node)
int vnet_lisp_map_register_fallback_threshold_set(u32 value)
int vnet_lisp_add_del_map_table_key(gid_address_t *eid, char *key, u8 is_add)
clib_error_t * vnet_lisp_enable_disable(u8 is_enabled)
int vnet_lisp_add_del_l2_arp_ndp_entry(gid_address_t *key, u8 *mac, u8 is_add)
int vnet_lisp_enable_disable_pitr_mode(u8 is_enabled)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
int vnet_lisp_add_del_locator(vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_index)
lisp_msmr_t * map_resolvers
lisp_msmr_t * map_servers
u32 vnet_lisp_map_register_fallback_threshold_get(void)
int vnet_lisp_map_register_set_ttl(u32 ttl)
vl_api_tunnel_mode_t mode
@ LISP_TRANSPORT_PROTOCOL_API
u32 * local_locator_set_indexes
vlib_node_registration_t lisp_cp_lookup_ip4_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip4_node)
u32 expired_map_registers
lisp_adjacency_t * vnet_lisp_adjacencies_get_by_vni(u32 vni)
Returns vector of adjacencies.
u32 petr_map_index
Proxy ETR map index used for 'use-petr'.
u32 * local_mappings_indexes
uword * pending_map_requests_by_nonce
map_records_arg_t * parse_map_reply(vlib_buffer_t *b)
locator_pair_t * locator_pairs
clib_error_t * lisp_cp_init()
lisp_api_l2_arp_entry_t * vnet_lisp_l2_arp_entries_get_by_bd(u32 bd)
int vnet_lisp_map_register_enable_disable(u8 is_enable)
u8 vnet_lisp_enable_disable_status(void)
u32 max_expired_map_registers
u32 * fwd_entry_by_mapping_index
locator_set_t * locator_set_pool
static lisp_cp_main_t * vnet_lisp_cp_get_main()
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)
gid_dictionary_t mapping_index_by_gid
lisp_cp_main_t lisp_control_main
u32 * vnet_lisp_l2_arp_bds_get(void)
int vnet_lisp_pitr_set_locator_set(u8 *locator_set_name, u8 is_add)
@ LISP_TRANSPORT_PROTOCOL_UDP
#define foreach_lisp_flag_bit
u8 vnet_lisp_get_pitr_mode(void)
u8 do_map_server_election
uword * locator_set_index_by_name
u8 vnet_lisp_get_map_request_mode(void)
int vnet_lisp_eid_table_map(u32 vni, u32 vrf, u8 is_l2, u8 is_add)
int vnet_lisp_rloc_probe_enable_disable(u8 is_enable)
enum lisp_flags lisp_flags_e
u32 * lcl_to_rmt_adjs_by_lcl_idx
u32 vnet_lisp_set_transport_protocol(u8 protocol)
struct _vlib_node_registration vlib_node_registration_t
u8 vnet_lisp_rloc_probe_state_get(void)
u32 ** locator_to_locator_sets
void vnet_lisp_create_retry_process(lisp_cp_main_t *lcm)
ip_address_t active_map_resolver
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.
u8 * key_by_mapping_index
int vnet_lisp_set_map_request_mode(u8 mode)
uword * map_register_messages_by_nonce
pending_map_register_t * pending_map_registers_pool
lisp_transport_protocol_t vnet_lisp_get_transport_protocol(void)
u32 retry_service_index
Retry service node index.
pending_map_request_t * pending_map_requests_pool
u32 ** locator_set_to_eids
u8 vnet_lisp_get_petr_mode(void)
u8 do_map_resolver_election
int vnet_lisp_use_petr(ip_address_t *ip, u8 is_add)
Configure Proxy-ETR.
int vnet_lisp_add_del_map_resolver(vnet_lisp_add_del_map_resolver_args_t *a)
vl_api_ip_proto_t protocol
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.
uword * l2_dp_intf_by_vni
u32 vnet_lisp_map_register_get_ttl(void)
int vnet_lisp_nsh_set_locator_set(u8 *locator_set_name, u8 is_add)
int vnet_lisp_clear_all_remote_adjacencies(void)
lisp_transport_protocol_t
int vnet_lisp_add_del_adjacency(vnet_lisp_add_del_adjacency_args_t *a)
Adds adjacency or removes forwarding entry associated to remote mapping.
int vnet_lisp_add_del_mreq_itr_rlocs(vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
lisp_transport_protocol_t transport_protocol
either UDP based or binary API.
int vnet_lisp_enable_disable_petr_mode(u8 is_enabled)
fwd_entry_t * fwd_entry_pool
u8 vnet_lisp_map_register_state_get(void)
struct _gid_address_t gid_address_t
enum lisp_flag_bits lisp_flag_bits_e
u8 vnet_lisp_get_xtr_mode(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.
map_records_arg_t ** map_records_args_pool
Per thread pool of records shared with thread0.
static mapping_t * lisp_get_petr_mapping(lisp_cp_main_t *lcm)
ip_address_t active_map_server
int vnet_lisp_enable_disable_xtr_mode(u8 is_enabled)
int vnet_lisp_add_del_map_server(ip_address_t *addr, u8 is_add)
u32 ** lcl_to_rmt_adjacencies
vlib_node_registration_t lisp_cp_input_node
(constructor) VLIB_REGISTER_NODE (lisp_cp_input_node)
int vnet_lisp_add_del_locator_set(vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_index)
vl_api_fib_path_type_t type
lisp_api_ndp_entry_t * vnet_lisp_ndp_entries_get_by_bd(u32 bd)
VLIB buffer representation.