FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
control.c File Reference
+ Include dependency graph for control.c:

Go to the source code of this file.

Data Structures

struct  map_request_args_t
 
struct  map_records_arg_t
 
struct  remove_mapping_args_t
 
struct  lisp_cp_lookup_trace_t
 
struct  lisp_cp_input_trace_t
 

Macros

#define foreach_lisp_cp_lookup_error
 
#define send_encapsulated_map_request(lcm, seid, deid, smr)   _send_encapsulated_map_request(lcm, seid, deid, smr, 0)
 
#define resend_encapsulated_map_request(lcm, seid, deid, smr)   _send_encapsulated_map_request(lcm, seid, deid, smr, 1)
 
#define foreach_lisp_cp_input_error
 

Enumerations

enum  lisp_cp_lookup_error_t { LISP_CP_LOOKUP_N_ERROR }
 
enum  lisp_cp_lookup_next_t { LISP_CP_LOOKUP_NEXT_DROP, LISP_CP_LOOKUP_N_NEXT }
 
enum  lisp_cp_input_error_t { LISP_CP_INPUT_N_ERROR }
 
enum  lisp_cp_input_next_t { LISP_CP_INPUT_NEXT_DROP, LISP_CP_INPUT_N_NEXT }
 

Functions

static int lisp_add_del_adjacency (lisp_cp_main_t *lcm, gid_address_t *local_eid, gid_address_t *remote_eid, u8 is_add)
 Adds adjacency or removes forwarding entry associated to remote mapping. More...
 
u8 vnet_lisp_get_map_request_mode (void)
 
static u16 auth_data_len_by_key_id (lisp_key_type_t key_id)
 
static const EVP_MD * get_encrypt_fcn (lisp_key_type_t key_id)
 
static int queue_map_request (gid_address_t *seid, gid_address_t *deid, u8 smr_invoked, u8 is_resend)
 
ip_interface_address_tip_interface_get_first_interface_address (ip_lookup_main_t *lm, u32 sw_if_index, u8 loop)
 
void * ip_interface_get_first_address (ip_lookup_main_t *lm, u32 sw_if_index, u8 version)
 
int ip_interface_get_first_ip_address (lisp_cp_main_t *lcm, u32 sw_if_index, u8 version, ip_address_t *result)
 
void ip_address_to_fib_prefix (const ip_address_t *addr, fib_prefix_t *prefix)
 convert from a LISP address to a FIB prefix More...
 
void ip_prefix_to_fib_prefix (const ip_prefix_t *ip_prefix, fib_prefix_t *fib_prefix)
 convert from a LISP to a FIB prefix More...
 
u32 ip_fib_get_egress_iface_for_dst (lisp_cp_main_t *lcm, ip_address_t *dst)
 Find the sw_if_index of the interface that would be used to egress towards dst. More...
 
int ip_fib_get_first_egress_ip_for_dst (lisp_cp_main_t *lcm, ip_address_t *dst, ip_address_t *result)
 Find first IP of the interface that would be used to egress towards dst. More...
 
static int dp_add_del_iface (lisp_cp_main_t *lcm, u32 vni, u8 is_l2, u8 is_add)
 
static void dp_del_fwd_entry (lisp_cp_main_t *lcm, u32 src_map_index, u32 dst_map_index)
 
static u32 get_locator_pairs (lisp_cp_main_t *lcm, mapping_t *lcl_map, mapping_t *rmt_map, locator_pair_t **locator_pairs)
 Finds first remote locator with best (lowest) priority that has a local peer locator with an underlying route to it. More...
 
static void gid_address_sd_to_flat (gid_address_t *dst, gid_address_t *src, fid_address_t *fid)
 
u8 vnet_lisp_map_register_state_get (void)
 
u8 vnet_lisp_rloc_probe_state_get (void)
 
static void dp_add_fwd_entry (lisp_cp_main_t *lcm, u32 src_map_index, u32 dst_map_index)
 
lisp_adjacency_tvnet_lisp_adjacencies_get_by_vni (u32 vni)
 Returns vector of adjacencies. More...
 
static clib_error_tlisp_show_adjacencies_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static lisp_msmr_tget_map_server (ip_address_t *a)
 
static lisp_msmr_tget_map_resolver (ip_address_t *a)
 
int vnet_lisp_add_del_map_server (ip_address_t *addr, u8 is_add)
 
static clib_error_tlisp_add_del_map_server_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_lisp_map_cache_add_del (vnet_lisp_add_del_mapping_args_t *a, u32 *map_index_result)
 Add/remove mapping to/from map-cache. More...
 
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. More...
 
static clib_error_tlisp_add_del_local_eid_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_lisp_eid_table_map (u32 vni, u32 dp_id, u8 is_l2, u8 is_add)
 
static clib_error_tlisp_eid_table_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8 compare_locators (lisp_cp_main_t *lcm, u32 *old_ls_indexes, locator_t *new_locators)
 
static void remove_mapping_if_needed (u32 mi, void *arg)
 Callback invoked when a sub-prefix is found. More...
 
static void remove_overlapping_sub_prefixes (lisp_cp_main_t *lcm, gid_address_t *eid, u8 is_negative)
 This function searches map cache and looks for IP prefixes that are subset of the provided one. More...
 
static void mapping_delete_timer (lisp_cp_main_t *lcm, u32 mi)
 
int vnet_lisp_add_del_mapping (gid_address_t *eid, locator_t *rlocs, u8 action, u8 authoritative, u32 ttl, u8 is_add, u8 is_static, u32 *res_map_index)
 Adds/removes/updates mapping. More...
 
int vnet_lisp_clear_all_remote_adjacencies (void)
 
int vnet_lisp_add_del_adjacency (vnet_lisp_add_del_adjacency_args_t *a)
 
static clib_error_tlisp_add_del_remote_mapping_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 Handler for add/del remote mapping CLI. More...
 
static clib_error_tlisp_add_del_adjacency_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 Handler for add/del adjacency CLI. More...
 
int vnet_lisp_set_map_request_mode (u8 mode)
 
static clib_error_tlisp_map_request_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_lisp_map_request_mode (u8 *s, va_list *args)
 
static clib_error_tlisp_show_map_request_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_show_map_resolvers_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_lisp_pitr_set_locator_set (u8 *locator_set_name, u8 is_add)
 
static clib_error_tlisp_pitr_set_locator_set_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_show_pitr_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_eid_entry (u8 *s, va_list *args)
 
static clib_error_tlisp_show_eid_table_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void clean_locator_to_locator_set (lisp_cp_main_t *lcm, u32 lsi)
 
static uwordget_locator_set_index (vnet_lisp_add_del_locator_set_args_t *a, uword *p)
 
static int is_locator_in_locator_set (lisp_cp_main_t *lcm, locator_set_t *ls, locator_t *loc)
 
static void remove_locator_from_locator_set (locator_set_t *ls, u32 *locit, u32 ls_index, u32 loc_id)
 
int vnet_lisp_add_del_locator (vnet_lisp_add_del_locator_set_args_t *a, locator_set_t *ls, u32 *ls_result)
 
int vnet_lisp_add_del_locator_set (vnet_lisp_add_del_locator_set_args_t *a, u32 *ls_result)
 
int vnet_lisp_rloc_probe_enable_disable (u8 is_enable)
 
int vnet_lisp_map_register_enable_disable (u8 is_enable)
 
clib_error_tvnet_lisp_enable_disable (u8 is_enable)
 
static clib_error_tlisp_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_map_register_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_rloc_probe_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8 vnet_lisp_enable_disable_status (void)
 
static u8format_lisp_status (u8 *s, va_list *args)
 
static clib_error_tlisp_show_status_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_show_eid_table_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_add_del_locator_set_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_add_del_locator_in_set_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_cp_show_locator_sets_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_lisp_add_del_map_resolver (vnet_lisp_add_del_map_resolver_args_t *a)
 
static clib_error_tlisp_add_del_map_resolver_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_lisp_add_del_mreq_itr_rlocs (vnet_lisp_add_del_mreq_itr_rloc_args_t *a)
 
static clib_error_tlisp_add_del_mreq_itr_rlocs_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tlisp_show_mreq_itr_rlocs_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_lisp_cp_lookup_trace (u8 *s, va_list *args)
 
int get_mr_and_local_iface_ip (lisp_cp_main_t *lcm, ip_address_t *mr_ip, ip_address_t *sloc)
 
static gid_address_tbuild_itr_rloc_list (lisp_cp_main_t *lcm, locator_set_t *loc_set)
 
static vlib_buffer_tbuild_map_request (lisp_cp_main_t *lcm, gid_address_t *deid, ip_address_t *sloc, ip_address_t *rloc, gid_address_t *itr_rlocs, u64 *nonce_res, u32 *bi_res)
 
static vlib_buffer_tbuild_encapsulated_map_request (lisp_cp_main_t *lcm, gid_address_t *seid, gid_address_t *deid, locator_set_t *loc_set, ip_address_t *mr_ip, ip_address_t *sloc, u8 is_smr_invoked, u64 *nonce_res, u32 *bi_res)
 
static void reset_pending_mr_counters (pending_map_request_t *r)
 
static int elect_map_resolver (lisp_cp_main_t *lcm)
 
static void free_map_register_records (mapping_t *maps)
 
static void add_locators (lisp_cp_main_t *lcm, mapping_t *m, u32 locator_set_index, ip_address_t *probed_loc)
 
static mapping_tbuild_map_register_record_list (lisp_cp_main_t *lcm)
 
static int update_map_register_auth_data (map_register_hdr_t *map_reg_hdr, lisp_key_type_t key_id, u8 *key, u16 auth_data_len, u32 msg_len)
 
static vlib_buffer_tbuild_map_register (lisp_cp_main_t *lcm, ip_address_t *sloc, ip_address_t *ms_ip, u64 *nonce_res, u8 want_map_notif, mapping_t *records, lisp_key_type_t key_id, u8 *key, u32 *bi_res)
 
static int get_egress_map_resolver_ip (lisp_cp_main_t *lcm, ip_address_t *ip)
 
static int send_rloc_probe (lisp_cp_main_t *lcm, gid_address_t *deid, u32 local_locator_set_index, ip_address_t *sloc, ip_address_t *rloc)
 
static int send_rloc_probes (lisp_cp_main_t *lcm)
 
static int send_map_register (lisp_cp_main_t *lcm, u8 want_map_notif)
 
static void get_src_and_dst_ip (void *hdr, ip_address_t *src, ip_address_t *dst)
 
static u32 lisp_get_vni_from_buffer_ip (lisp_cp_main_t *lcm, vlib_buffer_t *b, u8 version)
 
static u32 lisp_get_vni_from_buffer_eth (lisp_cp_main_t *lcm, vlib_buffer_t *b)
 
static 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)
 
static uword lisp_cp_lookup_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, int overlay)
 
static uword lisp_cp_lookup_ip4 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword lisp_cp_lookup_ip6 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword lisp_cp_lookup_l2 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
u8format_lisp_cp_input_trace (u8 *s, va_list *args)
 
static void remove_expired_mapping (lisp_cp_main_t *lcm, u32 mi)
 
static void mapping_start_expiration_timer (lisp_cp_main_t *lcm, u32 mi, f64 expiration_time)
 
static void map_records_arg_free (map_records_arg_t *a)
 
void * process_map_reply (map_records_arg_t *a)
 
static int is_auth_data_valid (map_notify_hdr_t *h, u32 msg_len, lisp_key_type_t key_id, u8 *key)
 
static void process_map_notify (map_records_arg_t *a)
 
static mapping_tget_mapping (lisp_cp_main_t *lcm, gid_address_t *e)
 
static int map_record_integrity_check (lisp_cp_main_t *lcm, mapping_t *maps, u32 key_id, u8 **key_out)
 When map-notify is received it is necessary that all EIDs in the record list share common key. More...
 
static int parse_map_records (vlib_buffer_t *b, map_records_arg_t *a, u8 count)
 
static map_records_arg_tparse_map_notify (vlib_buffer_t *b)
 
static vlib_buffer_tbuild_map_reply (lisp_cp_main_t *lcm, ip_address_t *sloc, ip_address_t *dst, u64 nonce, u8 probe_bit, mapping_t *records, u16 dst_port, u32 *bi_res)
 
static int send_map_reply (lisp_cp_main_t *lcm, u32 mi, ip_address_t *dst, u8 probe_bit, u64 nonce, u16 dst_port, ip_address_t *probed_loc)
 
void process_map_request (vlib_main_t *vm, lisp_cp_main_t *lcm, vlib_buffer_t *b)
 
static map_records_arg_tparse_map_reply (vlib_buffer_t *b)
 
static void queue_map_reply_for_processing (map_records_arg_t *a)
 
static void queue_map_notify_for_processing (map_records_arg_t *a)
 
static uword lisp_cp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
clib_error_tlisp_cp_init (vlib_main_t *vm)
 
static void * send_map_request_thread_fn (void *arg)
 
static void update_pending_request (pending_map_request_t *r, f64 dt)
 Take an action with a pending map request depending on expiration time and re-try counters. More...
 
static void remove_dead_pending_map_requests (lisp_cp_main_t *lcm)
 
static void update_rloc_probing (lisp_cp_main_t *lcm, f64 dt)
 
static void update_map_register (lisp_cp_main_t *lcm, f64 dt)
 
static uword send_map_resolver_service (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 

Variables

vlib_cli_command_t lisp_show_adjacencies_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_adjacencies_command) More...
 
vlib_cli_command_t lisp_add_del_map_server_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_map_server_command) More...
 
vlib_cli_command_t lisp_add_del_local_eid_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_local_eid_command) More...
 
vlib_cli_command_t lisp_eid_table_map_command
 (constructor) VLIB_CLI_COMMAND (lisp_eid_table_map_command) More...
 
vlib_cli_command_t lisp_add_del_remote_mapping_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_remote_mapping_command) More...
 
vlib_cli_command_t lisp_add_del_adjacency_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_adjacency_command) More...
 
vlib_cli_command_t lisp_map_request_mode_command
 (constructor) VLIB_CLI_COMMAND (lisp_map_request_mode_command) More...
 
vlib_cli_command_t lisp_show_map_request_mode_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_map_request_mode_command) More...
 
vlib_cli_command_t lisp_show_map_resolvers_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_map_resolvers_command) More...
 
vlib_cli_command_t lisp_pitr_set_locator_set_command
 (constructor) VLIB_CLI_COMMAND (lisp_pitr_set_locator_set_command) More...
 
vlib_cli_command_t lisp_show_pitr_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_pitr_command) More...
 
vlib_cli_command_t lisp_cp_show_eid_table_command
 (constructor) VLIB_CLI_COMMAND (lisp_cp_show_eid_table_command) More...
 
vlib_cli_command_t lisp_cp_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (lisp_cp_enable_disable_command) More...
 
vlib_cli_command_t lisp_map_register_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (lisp_map_register_enable_disable_command) More...
 
vlib_cli_command_t lisp_rloc_probe_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (lisp_rloc_probe_enable_disable_command) More...
 
vlib_cli_command_t lisp_show_status_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_status_command) More...
 
vlib_cli_command_t lisp_show_eid_table_map_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_eid_table_map_command) More...
 
vlib_cli_command_t lisp_cp_add_del_locator_set_command
 (constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_set_command) More...
 
vlib_cli_command_t lisp_cp_add_del_locator_in_set_command
 (constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_in_set_command) More...
 
vlib_cli_command_t lisp_cp_show_locator_sets_command
 (constructor) VLIB_CLI_COMMAND (lisp_cp_show_locator_sets_command) More...
 
vlib_cli_command_t lisp_add_del_map_resolver_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_map_resolver_command) More...
 
vlib_cli_command_t lisp_add_del_map_request_command
 (constructor) VLIB_CLI_COMMAND (lisp_add_del_map_request_command) More...
 
vlib_cli_command_t lisp_show_map_request_command
 (constructor) VLIB_CLI_COMMAND (lisp_show_map_request_command) More...
 
static char * lisp_cp_lookup_error_strings []
 
vlib_node_registration_t lisp_cp_lookup_ip4_node
 (constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip4_node) More...
 
vlib_node_registration_t lisp_cp_lookup_ip6_node
 (constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip6_node) More...
 
vlib_node_registration_t lisp_cp_lookup_l2_node
 (constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_l2_node) More...
 
static char * lisp_cp_input_error_strings []
 
vlib_node_registration_t lisp_cp_input_node
 (constructor) VLIB_REGISTER_NODE (lisp_cp_input_node) More...
 
static vlib_node_registration_t lisp_retry_service_node
 (constructor) VLIB_REGISTER_NODE (lisp_retry_service_node) More...
 

Macro Definition Documentation

#define foreach_lisp_cp_input_error
Value:
_(DROP, "drop") \
_(MAP_REPLIES_RECEIVED, "map-replies received")
DROP
Definition: error.def:41

Definition at line 4072 of file control.c.

#define foreach_lisp_cp_lookup_error
Value:
_(DROP, "drop") \
_(MAP_REQUESTS_SENT, "map-request sent")
DROP
Definition: error.def:41

Definition at line 3111 of file control.c.

#define resend_encapsulated_map_request (   lcm,
  seid,
  deid,
  smr 
)    _send_encapsulated_map_request(lcm, seid, deid, smr, 1)

Definition at line 3645 of file control.c.

#define send_encapsulated_map_request (   lcm,
  seid,
  deid,
  smr 
)    _send_encapsulated_map_request(lcm, seid, deid, smr, 0)

Definition at line 3642 of file control.c.

Enumeration Type Documentation

Enumerator
LISP_CP_INPUT_N_ERROR 

Definition at line 4082 of file control.c.

Enumerator
LISP_CP_INPUT_NEXT_DROP 
LISP_CP_INPUT_N_NEXT 

Definition at line 4090 of file control.c.

Enumerator
LISP_CP_LOOKUP_N_ERROR 

Definition at line 3121 of file control.c.

Enumerator
LISP_CP_LOOKUP_NEXT_DROP 
LISP_CP_LOOKUP_N_NEXT 

Definition at line 3129 of file control.c.

Function Documentation

static void add_locators ( lisp_cp_main_t lcm,
mapping_t m,
u32  locator_set_index,
ip_address_t *  probed_loc 
)
static

Definition at line 3356 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u16 auth_data_len_by_key_id ( lisp_key_type_t  key_id)
static

Definition at line 56 of file control.c.

+ Here is the caller graph for this function:

static vlib_buffer_t* build_encapsulated_map_request ( lisp_cp_main_t lcm,
gid_address_t seid,
gid_address_t deid,
locator_set_t loc_set,
ip_address_t *  mr_ip,
ip_address_t *  sloc,
u8  is_smr_invoked,
u64 nonce_res,
u32 bi_res 
)
static

Definition at line 3268 of file control.c.

+ Here is the call graph for this function:

static gid_address_t* build_itr_rloc_list ( lisp_cp_main_t lcm,
locator_set_t loc_set 
)
static

Definition at line 3186 of file control.c.

+ Here is the caller graph for this function:

static vlib_buffer_t* build_map_register ( lisp_cp_main_t lcm,
ip_address_t *  sloc,
ip_address_t *  ms_ip,
u64 nonce_res,
u8  want_map_notif,
mapping_t records,
lisp_key_type_t  key_id,
u8 key,
u32 bi_res 
)
static

Definition at line 3438 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static mapping_t* build_map_register_record_list ( lisp_cp_main_t lcm)
static

Definition at line 3401 of file control.c.

+ Here is the caller graph for this function:

static vlib_buffer_t* build_map_reply ( lisp_cp_main_t lcm,
ip_address_t *  sloc,
ip_address_t *  dst,
u64  nonce,
u8  probe_bit,
mapping_t records,
u16  dst_port,
u32 bi_res 
)
static

Definition at line 4390 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static vlib_buffer_t* build_map_request ( lisp_cp_main_t lcm,
gid_address_t deid,
ip_address_t *  sloc,
ip_address_t *  rloc,
gid_address_t itr_rlocs,
u64 nonce_res,
u32 bi_res 
)
static

Definition at line 3235 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void clean_locator_to_locator_set ( lisp_cp_main_t lcm,
u32  lsi 
)
static

Definition at line 2067 of file control.c.

+ Here is the caller graph for this function:

static u8 compare_locators ( lisp_cp_main_t lcm,
u32 old_ls_indexes,
locator_t new_locators 
)
static

Definition at line 1074 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int dp_add_del_iface ( lisp_cp_main_t lcm,
u32  vni,
u8  is_l2,
u8  is_add 
)
static

Definition at line 216 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dp_add_fwd_entry ( lisp_cp_main_t lcm,
u32  src_map_index,
u32  dst_map_index 
)
static

Definition at line 427 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dp_del_fwd_entry ( lisp_cp_main_t lcm,
u32  src_map_index,
u32  dst_map_index 
)
static

Definition at line 260 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int elect_map_resolver ( lisp_cp_main_t lcm)
static

Definition at line 3330 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_eid_entry ( u8 s,
va_list *  args 
)
static

Definition at line 1935 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_lisp_cp_input_trace ( u8 s,
va_list *  args 
)

Definition at line 4103 of file control.c.

+ Here is the call graph for this function:

u8* format_lisp_cp_lookup_trace ( u8 s,
va_list *  args 
)

Definition at line 3142 of file control.c.

+ Here is the call graph for this function:

static u8* format_lisp_map_request_mode ( u8 s,
va_list *  args 
)
static

Definition at line 1731 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_lisp_status ( u8 s,
va_list *  args 
)
static

Definition at line 2603 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void free_map_register_records ( mapping_t maps)
static

Definition at line 3347 of file control.c.

+ Here is the caller graph for this function:

static int get_egress_map_resolver_ip ( lisp_cp_main_t lcm,
ip_address_t *  ip 
)
static

Definition at line 3476 of file control.c.

+ Here is the call graph for this function:

static const EVP_MD* get_encrypt_fcn ( lisp_key_type_t  key_id)
static

Definition at line 72 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 get_locator_pairs ( lisp_cp_main_t lcm,
mapping_t lcl_map,
mapping_t rmt_map,
locator_pair_t **  locator_pairs 
)
static

Finds first remote locator with best (lowest) priority that has a local peer locator with an underlying route to it.

Definition at line 296 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword* get_locator_set_index ( vnet_lisp_add_del_locator_set_args_t a,
uword p 
)
inlinestatic

Definition at line 2106 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static lisp_msmr_t* get_map_resolver ( ip_address_t *  a)
static

Definition at line 625 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static lisp_msmr_t* get_map_server ( ip_address_t *  a)
static

Definition at line 609 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static mapping_t* get_mapping ( lisp_cp_main_t lcm,
gid_address_t e 
)
static

Definition at line 4260 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int get_mr_and_local_iface_ip ( lisp_cp_main_t lcm,
ip_address_t *  mr_ip,
ip_address_t *  sloc 
)

Definition at line 3155 of file control.c.

+ Here is the call graph for this function:

static 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 
)
inlinestatic

Definition at line 3849 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void get_src_and_dst_ip ( void *  hdr,
ip_address_t *  src,
ip_address_t *  dst 
)
static

Definition at line 3782 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gid_address_sd_to_flat ( gid_address_t dst,
gid_address_t src,
fid_address_t fid 
)
static

Definition at line 389 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip_address_to_fib_prefix ( const ip_address_t *  addr,
fib_prefix_t prefix 
)

convert from a LISP address to a FIB prefix

Definition at line 138 of file control.c.

+ Here is the caller graph for this function:

u32 ip_fib_get_egress_iface_for_dst ( lisp_cp_main_t lcm,
ip_address_t *  dst 
)

Find the sw_if_index of the interface that would be used to egress towards dst.

Definition at line 171 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip_fib_get_first_egress_ip_for_dst ( lisp_cp_main_t lcm,
ip_address_t *  dst,
ip_address_t *  result 
)

Find first IP of the interface that would be used to egress towards dst.

Returns 1 if the address is found 0 otherwise.

Definition at line 188 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* ip_interface_get_first_address ( ip_lookup_main_t lm,
u32  sw_if_index,
u8  version 
)

Definition at line 107 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ip_interface_address_t* ip_interface_get_first_interface_address ( ip_lookup_main_t lm,
u32  sw_if_index,
u8  loop 
)

Definition at line 92 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip_interface_get_first_ip_address ( lisp_cp_main_t lcm,
u32  sw_if_index,
u8  version,
ip_address_t *  result 
)

Definition at line 119 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip_prefix_to_fib_prefix ( const ip_prefix_t *  ip_prefix,
fib_prefix_t fib_prefix 
)

convert from a LISP to a FIB prefix

Definition at line 159 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int is_auth_data_valid ( map_notify_hdr_t h,
u32  msg_len,
lisp_key_type_t  key_id,
u8 key 
)
static

Definition at line 4209 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int is_locator_in_locator_set ( lisp_cp_main_t lcm,
locator_set_t ls,
locator_t loc 
)
inlinestatic

Definition at line 2127 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int lisp_add_del_adjacency ( lisp_cp_main_t lcm,
gid_address_t local_eid,
gid_address_t remote_eid,
u8  is_add 
)
static

Adds adjacency or removes forwarding entry associated to remote mapping.

Note that adjacencies are not stored, they only result in forwarding entries being created.

Definition at line 1369 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* lisp_add_del_adjacency_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Handler for add/del adjacency CLI.

Definition at line 1561 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_local_eid_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 873 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_locator_in_set_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2760 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_locator_set_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2688 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_map_resolver_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2939 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_map_server_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 683 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_mreq_itr_rlocs_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 3028 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_add_del_remote_mapping_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Handler for add/del remote mapping CLI.

Parameters
vmvlib context
inputinput from user
cmdcmd
Returns
pointer to clib error structure

Definition at line 1434 of file control.c.

+ Here is the call graph for this function:

clib_error_t* lisp_cp_init ( vlib_main_t vm)

Definition at line 4707 of file control.c.

+ Here is the call graph for this function:

static uword lisp_cp_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 4620 of file control.c.

+ Here is the call graph for this function:

static uword lisp_cp_lookup_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
int  overlay 
)
static

Definition at line 3899 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword lisp_cp_lookup_ip4 ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 3994 of file control.c.

+ Here is the call graph for this function:

static uword lisp_cp_lookup_ip6 ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 4001 of file control.c.

+ Here is the call graph for this function:

static uword lisp_cp_lookup_l2 ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 4008 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_cp_show_locator_sets_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2834 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_eid_table_map_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1033 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2457 of file control.c.

+ Here is the call graph for this function:

static u32 lisp_get_vni_from_buffer_eth ( lisp_cp_main_t lcm,
vlib_buffer_t b 
)
inlinestatic

Definition at line 3824 of file control.c.

+ Here is the caller graph for this function:

static u32 lisp_get_vni_from_buffer_ip ( lisp_cp_main_t lcm,
vlib_buffer_t b,
u8  version 
)
static

Definition at line 3801 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* lisp_map_register_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2500 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_map_request_mode_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1687 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_pitr_set_locator_set_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1830 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_rloc_probe_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2548 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_adjacencies_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 557 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_eid_table_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1982 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_eid_table_map_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2630 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_map_request_mode_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1746 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_map_resolvers_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1764 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_mreq_itr_rlocs_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 3081 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_pitr_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1882 of file control.c.

+ Here is the call graph for this function:

static clib_error_t* lisp_show_status_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2610 of file control.c.

+ Here is the call graph for this function:

static int map_record_integrity_check ( lisp_cp_main_t lcm,
mapping_t maps,
u32  key_id,
u8 **  key_out 
)
static

When map-notify is received it is necessary that all EIDs in the record list share common key.

The key is then used to verify authentication data in map-notify message.

Definition at line 4280 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void map_records_arg_free ( map_records_arg_t a)
static

Definition at line 4142 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void mapping_delete_timer ( lisp_cp_main_t lcm,
u32  mi 
)
static

Definition at line 1179 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void mapping_start_expiration_timer ( lisp_cp_main_t lcm,
u32  mi,
f64  expiration_time 
)
static

Definition at line 4127 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static map_records_arg_t* parse_map_notify ( vlib_buffer_t b)
static

Definition at line 4338 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int parse_map_records ( vlib_buffer_t b,
map_records_arg_t a,
u8  count 
)
static

Definition at line 4309 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static map_records_arg_t* parse_map_reply ( vlib_buffer_t b)
static

Definition at line 4565 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void process_map_notify ( map_records_arg_t a)
static

Definition at line 4242 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* process_map_reply ( map_records_arg_t a)

Definition at line 4155 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void process_map_request ( vlib_main_t vm,
lisp_cp_main_t lcm,
vlib_buffer_t b 
)

Definition at line 4466 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void queue_map_notify_for_processing ( map_records_arg_t a)
static

Definition at line 4614 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void queue_map_reply_for_processing ( map_records_arg_t a)
static

Definition at line 4608 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int queue_map_request ( gid_address_t seid,
gid_address_t deid,
u8  smr_invoked,
u8  is_resend 
)
static

Definition at line 4756 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void remove_dead_pending_map_requests ( lisp_cp_main_t lcm)
static

Definition at line 4826 of file control.c.

+ Here is the caller graph for this function:

static void remove_expired_mapping ( lisp_cp_main_t lcm,
u32  mi 
)
static

Definition at line 4115 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void remove_locator_from_locator_set ( locator_set_t ls,
u32 locit,
u32  ls_index,
u32  loc_id 
)
inlinestatic

Definition at line 2151 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void remove_mapping_if_needed ( u32  mi,
void *  arg 
)
static

Callback invoked when a sub-prefix is found.

Definition at line 1107 of file control.c.

+ Here is the caller graph for this function:

static void remove_overlapping_sub_prefixes ( lisp_cp_main_t lcm,
gid_address_t eid,
u8  is_negative 
)
static

This function searches map cache and looks for IP prefixes that are subset of the provided one.

If such prefix is found depending on 'is_negative' it does follows:

1) if is_negative is true and found prefix points to positive mapping, then the mapping is removed 2) if is_negative is false and found prefix points to negative mapping, then the mapping is removed

Definition at line 1147 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void reset_pending_mr_counters ( pending_map_request_t r)
static

Definition at line 3323 of file control.c.

+ Here is the caller graph for this function:

static int send_map_register ( lisp_cp_main_t lcm,
u8  want_map_notif 
)
static

Definition at line 3577 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int send_map_reply ( lisp_cp_main_t lcm,
u32  mi,
ip_address_t *  dst,
u8  probe_bit,
u64  nonce,
u16  dst_port,
ip_address_t *  probed_loc 
)
static

Definition at line 4419 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* send_map_request_thread_fn ( void *  arg)
static

Definition at line 4742 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword send_map_resolver_service ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 4892 of file control.c.

+ Here is the call graph for this function:

static int send_rloc_probe ( lisp_cp_main_t lcm,
gid_address_t deid,
u32  local_locator_set_index,
ip_address_t *  sloc,
ip_address_t *  rloc 
)
static

Definition at line 3496 of file control.c.

+ Here is the call graph for this function:

static int send_rloc_probes ( lisp_cp_main_t lcm)
static

Definition at line 3534 of file control.c.

+ Here is the caller graph for this function:

static void update_map_register ( lisp_cp_main_t lcm,
f64  dt 
)
static

Definition at line 4869 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int update_map_register_auth_data ( map_register_hdr_t map_reg_hdr,
lisp_key_type_t  key_id,
u8 key,
u16  auth_data_len,
u32  msg_len 
)
static

Definition at line 3422 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void update_pending_request ( pending_map_request_t r,
f64  dt 
)
static

Take an action with a pending map request depending on expiration time and re-try counters.

Definition at line 4776 of file control.c.

+ Here is the call graph for this function:

static void update_rloc_probing ( lisp_cp_main_t lcm,
f64  dt 
)
static

Definition at line 4853 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_adjacency ( vnet_lisp_add_del_adjacency_args_t a)

Definition at line 1419 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

Definition at line 839 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_locator ( vnet_lisp_add_del_locator_set_args_t a,
locator_set_t ls,
u32 ls_result 
)

Definition at line 2167 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_locator_set ( vnet_lisp_add_del_locator_set_args_t a,
u32 ls_result 
)

Definition at line 2257 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_map_resolver ( vnet_lisp_add_del_map_resolver_args_t a)

Definition at line 2891 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_map_server ( ip_address_t *  addr,
u8  is_add 
)

Definition at line 641 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_mapping ( gid_address_t eid,
locator_t rlocs,
u8  action,
u8  authoritative,
u32  ttl,
u8  is_add,
u8  is_static,
u32 res_map_index 
)

Adds/removes/updates mapping.

Does not program forwarding.

Parameters
eidend-host identifier
rlocsvector of remote locators
actionaction for negative map-reply
is_addadd mapping if non-zero, delete otherwise
res_map_indexthe map-index that was created/updated/removed. It is set to ~0 if no action is taken.
is_staticused for distinguishing between statically learned remote mappings and mappings obtained from MR
Returns
return code

Definition at line 1198 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_add_del_mreq_itr_rlocs ( vnet_lisp_add_del_mreq_itr_rloc_args_t a)

Definition at line 2997 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

lisp_adjacency_t* vnet_lisp_adjacencies_get_by_vni ( u32  vni)

Returns vector of adjacencies.

The caller must free the vector returned by this function.

Parameters
vnivirtual network identifier
Returns
vector of adjacencies

Definition at line 535 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_clear_all_remote_adjacencies ( void  )

Definition at line 1318 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_eid_table_map ( u32  vni,
u32  dp_id,
u8  is_l2,
u8  is_add 
)

Definition at line 977 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_lisp_enable_disable ( u8  is_enable)

Definition at line 2415 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_enable_disable_status ( void  )

Definition at line 2596 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_get_map_request_mode ( void  )

Definition at line 49 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_map_cache_add_del ( vnet_lisp_add_del_mapping_args_t a,
u32 map_index_result 
)

Add/remove mapping to/from map-cache.

Overwriting not allowed.

Definition at line 738 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_map_register_enable_disable ( u8  is_enable)

Definition at line 2406 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_map_register_state_get ( void  )

Definition at line 413 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_pitr_set_locator_set ( u8 locator_set_name,
u8  is_add 
)

Definition at line 1787 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_rloc_probe_enable_disable ( u8  is_enable)

Definition at line 2397 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_rloc_probe_state_get ( void  )

Definition at line 420 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_set_map_request_mode ( u8  mode)

Definition at line 1666 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t lisp_add_del_adjacency_command
Initial value:
= {
.path = "lisp adjacency",
.short_help = "lisp adjacency add|del vni <vni> reid <remote-eid> "
"leid <local-eid>",
}
static clib_error_t * lisp_add_del_adjacency_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Handler for add/del adjacency CLI.
Definition: control.c:1561

(constructor) VLIB_CLI_COMMAND (lisp_add_del_adjacency_command)

Definition at line 1657 of file control.c.

vlib_cli_command_t lisp_add_del_local_eid_command
Initial value:
= {
.path = "lisp eid-table",
.short_help = "lisp eid-table add/del [vni <vni>] eid <eid> "
"locator-set <locator-set> [key <secret-key> key-id sha1|sha256 ]",
}
static clib_error_t * lisp_add_del_local_eid_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:873

(constructor) VLIB_CLI_COMMAND (lisp_add_del_local_eid_command)

Definition at line 968 of file control.c.

vlib_cli_command_t lisp_add_del_map_request_command
Initial value:
= {
.path = "lisp map-request itr-rlocs",
.short_help = "lisp map-request itr-rlocs add/del <locator_set_name>",
}
static clib_error_t * lisp_add_del_mreq_itr_rlocs_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:3028

(constructor) VLIB_CLI_COMMAND (lisp_add_del_map_request_command)

Definition at line 3073 of file control.c.

vlib_cli_command_t lisp_add_del_map_resolver_command
Initial value:
= {
.path = "lisp map-resolver",
.short_help = "lisp map-resolver add/del <ip_address>",
}
static clib_error_t * lisp_add_del_map_resolver_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2939

(constructor) VLIB_CLI_COMMAND (lisp_add_del_map_resolver_command)

Definition at line 2989 of file control.c.

vlib_cli_command_t lisp_add_del_map_server_command
Initial value:
= {
.path = "lisp map-server",
.short_help = "lisp map-server add|del <ip>",
}
static clib_error_t * lisp_add_del_map_server_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:683

(constructor) VLIB_CLI_COMMAND (lisp_add_del_map_server_command)

Definition at line 727 of file control.c.

vlib_cli_command_t lisp_add_del_remote_mapping_command
Initial value:
=
{
.path = "lisp remote-mapping",.short_help =
"lisp remote-mapping add|del [del-all] vni <vni> "
"eid <est-eid> [action <no-action|natively-forward|"
"send-map-request|drop>] rloc <dst-locator> p <prio> w <weight> "
"[rloc <dst-locator> ... ]",.function =
static clib_error_t * lisp_add_del_remote_mapping_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Handler for add/del remote mapping CLI.
Definition: control.c:1434

(constructor) VLIB_CLI_COMMAND (lisp_add_del_remote_mapping_command)

Definition at line 1548 of file control.c.

vlib_cli_command_t lisp_cp_add_del_locator_in_set_command
Initial value:
= {
.path = "lisp locator",
.short_help = "lisp locator add/del locator-set <name> iface <iface-name> "
"p <priority> w <weight>",
}
static clib_error_t * lisp_add_del_locator_in_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2760

(constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_in_set_command)

Definition at line 2825 of file control.c.

vlib_cli_command_t lisp_cp_add_del_locator_set_command
Initial value:
= {
.path = "lisp locator-set",
.short_help = "lisp locator-set add/del <name> [iface <iface-name> "
"p <priority> w <weight>]",
}
static clib_error_t * lisp_add_del_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2688

(constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_set_command)

Definition at line 2751 of file control.c.

vlib_cli_command_t lisp_cp_enable_disable_command
Initial value:
= {
.path = "lisp",
.short_help = "lisp [enable|disable]",
}
static clib_error_t * lisp_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2457

(constructor) VLIB_CLI_COMMAND (lisp_cp_enable_disable_command)

Definition at line 2492 of file control.c.

char* lisp_cp_input_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_lisp_cp_input_error
Definition: control.c:4072

Definition at line 4076 of file control.c.

vlib_node_registration_t lisp_cp_input_node
Initial value:
= {
.function = lisp_cp_input,
.name = "lisp-cp-input",
.vector_size = sizeof (u32),
.format_trace = format_lisp_cp_input_trace,
.n_errors = LISP_CP_INPUT_N_ERROR,
.error_strings = lisp_cp_input_error_strings,
.n_next_nodes = LISP_CP_INPUT_N_NEXT,
.next_nodes = {
[LISP_CP_INPUT_NEXT_DROP] = "error-drop",
},
}
static uword lisp_cp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: control.c:4620
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * lisp_cp_input_error_strings[]
Definition: control.c:4076
u8 * format_lisp_cp_input_trace(u8 *s, va_list *args)
Definition: control.c:4103
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (lisp_cp_input_node)

Definition at line 4688 of file control.c.

char* lisp_cp_lookup_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_lisp_cp_lookup_error
Definition: control.c:3111

Definition at line 3115 of file control.c.

vlib_node_registration_t lisp_cp_lookup_ip4_node
Initial value:
= {
.function = lisp_cp_lookup_ip4,
.name = "lisp-cp-lookup-ip4",
.vector_size = sizeof (u32),
.format_trace = format_lisp_cp_lookup_trace,
.error_strings = lisp_cp_lookup_error_strings,
.n_next_nodes = LISP_CP_LOOKUP_N_NEXT,
.next_nodes = {
[LISP_CP_LOOKUP_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword lisp_cp_lookup_ip4(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: control.c:3994
unsigned int u32
Definition: types.h:88
static char * lisp_cp_lookup_error_strings[]
Definition: control.c:3115
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:3142

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip4_node)

Definition at line 4015 of file control.c.

vlib_node_registration_t lisp_cp_lookup_ip6_node
Initial value:
= {
.function = lisp_cp_lookup_ip6,
.name = "lisp-cp-lookup-ip6",
.vector_size = sizeof (u32),
.format_trace = format_lisp_cp_lookup_trace,
.error_strings = lisp_cp_lookup_error_strings,
.n_next_nodes = LISP_CP_LOOKUP_N_NEXT,
.next_nodes = {
[LISP_CP_LOOKUP_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
unsigned int u32
Definition: types.h:88
static char * lisp_cp_lookup_error_strings[]
Definition: control.c:3115
static uword lisp_cp_lookup_ip6(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: control.c:4001
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:3142

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip6_node)

Definition at line 4034 of file control.c.

vlib_node_registration_t lisp_cp_lookup_l2_node
Initial value:
= {
.function = lisp_cp_lookup_l2,
.name = "lisp-cp-lookup-l2",
.vector_size = sizeof (u32),
.format_trace = format_lisp_cp_lookup_trace,
.error_strings = lisp_cp_lookup_error_strings,
.n_next_nodes = LISP_CP_LOOKUP_N_NEXT,
.next_nodes = {
[LISP_CP_LOOKUP_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword lisp_cp_lookup_l2(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: control.c:4008
unsigned int u32
Definition: types.h:88
static char * lisp_cp_lookup_error_strings[]
Definition: control.c:3115
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:3142

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_l2_node)

Definition at line 4053 of file control.c.

vlib_cli_command_t lisp_cp_show_eid_table_command
Initial value:
= {
.path = "show lisp eid-table",
.short_help = "Shows EID table",
}
static clib_error_t * lisp_show_eid_table_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1982

(constructor) VLIB_CLI_COMMAND (lisp_cp_show_eid_table_command)

Definition at line 2057 of file control.c.

vlib_cli_command_t lisp_cp_show_locator_sets_command
Initial value:
= {
.path = "show lisp locator-set",
.short_help = "Shows locator-sets",
}
static clib_error_t * lisp_cp_show_locator_sets_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2834

(constructor) VLIB_CLI_COMMAND (lisp_cp_show_locator_sets_command)

Definition at line 2883 of file control.c.

vlib_cli_command_t lisp_eid_table_map_command
Initial value:
= {
.path = "lisp eid-table map",
.short_help = "lisp eid-table map [del] vni <vni> vrf <vrf> | bd <bdi>",
}
static clib_error_t * lisp_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1033

(constructor) VLIB_CLI_COMMAND (lisp_eid_table_map_command)

Definition at line 1065 of file control.c.

vlib_cli_command_t lisp_map_register_enable_disable_command
Initial value:
= {
.path = "lisp map-register",
.short_help = "lisp map-register [enable|disable]",
}
static clib_error_t * lisp_map_register_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2500

(constructor) VLIB_CLI_COMMAND (lisp_map_register_enable_disable_command)

Definition at line 2540 of file control.c.

vlib_cli_command_t lisp_map_request_mode_command
Initial value:
= {
.path = "lisp map-request mode",
.short_help = "lisp map-request mode dst-only|src-dst",
}
static clib_error_t * lisp_map_request_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1687

(constructor) VLIB_CLI_COMMAND (lisp_map_request_mode_command)

Definition at line 1723 of file control.c.

vlib_cli_command_t lisp_pitr_set_locator_set_command
Initial value:
= {
.path = "lisp pitr",
.short_help = "lisp pitr [disable] ls <locator-set-name>",
}
static clib_error_t * lisp_pitr_set_locator_set_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1830

(constructor) VLIB_CLI_COMMAND (lisp_pitr_set_locator_set_command)

Definition at line 1874 of file control.c.

vlib_node_registration_t lisp_retry_service_node
static
Initial value:
= {
.name = "lisp-retry-service",
.process_log2_n_stack_bytes = 16,
}
static uword send_map_resolver_service(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: control.c:4892

(constructor) VLIB_REGISTER_NODE (lisp_retry_service_node)

Definition at line 4939 of file control.c.

vlib_cli_command_t lisp_rloc_probe_enable_disable_command
Initial value:
= {
.path = "lisp rloc-probe",
.short_help = "lisp rloc-probe [enable|disable]",
}
static clib_error_t * lisp_rloc_probe_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2548

(constructor) VLIB_CLI_COMMAND (lisp_rloc_probe_enable_disable_command)

Definition at line 2588 of file control.c.

vlib_cli_command_t lisp_show_adjacencies_command
Initial value:
= {
.path = "show lisp adjacencies",
.short_help = "show lisp adjacencies",
}
static clib_error_t * lisp_show_adjacencies_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:557

(constructor) VLIB_CLI_COMMAND (lisp_show_adjacencies_command)

Definition at line 601 of file control.c.

vlib_cli_command_t lisp_show_eid_table_map_command
Initial value:
= {
.path = "show lisp eid-table map",
.short_help = "show lisp eid-table l2|l3",
}
static clib_error_t * lisp_show_eid_table_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2630

(constructor) VLIB_CLI_COMMAND (lisp_show_eid_table_map_command)

Definition at line 2680 of file control.c.

vlib_cli_command_t lisp_show_map_request_command
Initial value:
= {
.path = "show lisp map-request itr-rlocs",
.short_help = "Shows map-request itr-rlocs",
}
static clib_error_t * lisp_show_mreq_itr_rlocs_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:3081

(constructor) VLIB_CLI_COMMAND (lisp_show_map_request_command)

Definition at line 3103 of file control.c.

vlib_cli_command_t lisp_show_map_request_mode_command
Initial value:
= {
.path = "show lisp map-request mode",
.short_help = "show lisp map-request mode",
}
static clib_error_t * lisp_show_map_request_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1746

(constructor) VLIB_CLI_COMMAND (lisp_show_map_request_mode_command)

Definition at line 1756 of file control.c.

vlib_cli_command_t lisp_show_map_resolvers_command
Initial value:
= {
.path = "show lisp map-resolvers",
.short_help = "show lisp map-resolvers",
}
static clib_error_t * lisp_show_map_resolvers_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1764

(constructor) VLIB_CLI_COMMAND (lisp_show_map_resolvers_command)

Definition at line 1779 of file control.c.

vlib_cli_command_t lisp_show_pitr_command
Initial value:
= {
.path = "show lisp pitr",
.short_help = "Show pitr",
}
static clib_error_t * lisp_show_pitr_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:1882

(constructor) VLIB_CLI_COMMAND (lisp_show_pitr_command)

Definition at line 1927 of file control.c.

vlib_cli_command_t lisp_show_status_command
Initial value:
= {
.path = "show lisp status",
.short_help = "show lisp status",
}
static clib_error_t * lisp_show_status_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: control.c:2610

(constructor) VLIB_CLI_COMMAND (lisp_show_status_command)

Definition at line 2622 of file control.c.