FD.io VPP  v16.12-rc0-308-g931be3a
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  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

u8 vnet_lisp_get_map_request_mode (void)
 
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)
 
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)
 
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...
 
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 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...
 
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)
 
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)
 
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)
 
static map_resolver_tget_map_resolver (ip_address_t *a)
 
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_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 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)
 
void * process_map_reply (void *arg)
 
void process_map_request (vlib_main_t *vm, lisp_cp_main_t *lcm, vlib_buffer_t *b)
 
static void queue_map_reply (vlib_buffer_t *b)
 
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 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_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_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 3433 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 2788 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 2992 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 2989 of file control.c.

Enumeration Type Documentation

Enumerator
LISP_CP_INPUT_N_ERROR 

Definition at line 3443 of file control.c.

Enumerator
LISP_CP_INPUT_NEXT_DROP 
LISP_CP_INPUT_N_NEXT 

Definition at line 3451 of file control.c.

Enumerator
LISP_CP_LOOKUP_N_ERROR 

Definition at line 2798 of file control.c.

Enumerator
LISP_CP_LOOKUP_NEXT_DROP 
LISP_CP_LOOKUP_N_NEXT 

Definition at line 2806 of file control.c.

Function Documentation

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 2912 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 2863 of file control.c.

+ 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 1843 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 864 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 170 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 366 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 214 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 2973 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 1711 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 3464 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 2819 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 1507 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 2264 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 250 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 1882 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static map_resolver_t* get_map_resolver ( ip_address_t *  a)
static

Definition at line 2552 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 2832 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 3210 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 3143 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 342 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 92 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 125 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 142 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 61 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 46 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 73 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 113 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 1903 of file control.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

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

Definition at line 1145 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 1337 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 679 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 2421 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 2349 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 2616 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 2705 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 1210 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 3701 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 3622 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 3260 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 3355 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 3362 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 3369 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 2495 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 823 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 2215 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 3185 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 3162 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_request_mode_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 1463 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 1606 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 491 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 1758 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 2291 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 1522 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 1540 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 2758 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 1658 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 2271 of file control.c.

+ Here is the call graph for this function:

void* process_map_reply ( void *  arg)

Definition at line 3476 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 3554 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 ( vlib_buffer_t b)
static

Definition at line 3608 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 3759 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 3829 of file control.c.

+ 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 1927 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 897 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 937 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 2966 of file control.c.

+ Here is the caller graph for this function:

static void* send_map_request_thread_fn ( void *  arg)
static

Definition at line 3738 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 3858 of file control.c.

+ Here is the call 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 3779 of file control.c.

+ Here is the call graph for this function:

int vnet_lisp_add_del_adjacency ( vnet_lisp_add_del_adjacency_args_t a)

Definition at line 1195 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 645 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 1943 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 2033 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 2568 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 979 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 2674 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 469 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 1094 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 767 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 2173 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 2257 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 35 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 546 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 1563 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 1442 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:1337

(constructor) VLIB_CLI_COMMAND (lisp_add_del_adjacency_command)

Definition at line 1433 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>",
}
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:679

(constructor) VLIB_CLI_COMMAND (lisp_add_del_local_eid_command)

Definition at line 758 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:2705

(constructor) VLIB_CLI_COMMAND (lisp_add_del_map_request_command)

Definition at line 2750 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:2616

(constructor) VLIB_CLI_COMMAND (lisp_add_del_map_resolver_command)

Definition at line 2666 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:1210

(constructor) VLIB_CLI_COMMAND (lisp_add_del_remote_mapping_command)

Definition at line 1324 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:2421

(constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_in_set_command)

Definition at line 2486 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:2349

(constructor) VLIB_CLI_COMMAND (lisp_cp_add_del_locator_set_command)

Definition at line 2412 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:2215

(constructor) VLIB_CLI_COMMAND (lisp_cp_enable_disable_command)

Definition at line 2249 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:3433

Definition at line 3437 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:3622
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * lisp_cp_input_error_strings[]
Definition: control.c:3437
u8 * format_lisp_cp_input_trace(u8 *s, va_list *args)
Definition: control.c:3464
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (lisp_cp_input_node)

Definition at line 3682 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:2788

Definition at line 2792 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:3355
unsigned int u32
Definition: types.h:88
static char * lisp_cp_lookup_error_strings[]
Definition: control.c:2792
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:2819

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip4_node)

Definition at line 3376 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:2792
static uword lisp_cp_lookup_ip6(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: control.c:3362
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:2819

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_ip6_node)

Definition at line 3395 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:3369
unsigned int u32
Definition: types.h:88
static char * lisp_cp_lookup_error_strings[]
Definition: control.c:2792
u8 * format_lisp_cp_lookup_trace(u8 *s, va_list *args)
Definition: control.c:2819

(constructor) VLIB_REGISTER_NODE (lisp_cp_lookup_l2_node)

Definition at line 3414 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:1758

(constructor) VLIB_CLI_COMMAND (lisp_cp_show_eid_table_command)

Definition at line 1833 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:2495

(constructor) VLIB_CLI_COMMAND (lisp_cp_show_locator_sets_command)

Definition at line 2544 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:823

(constructor) VLIB_CLI_COMMAND (lisp_eid_table_map_command)

Definition at line 855 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:1463

(constructor) VLIB_CLI_COMMAND (lisp_map_request_mode_command)

Definition at line 1499 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:1606

(constructor) VLIB_CLI_COMMAND (lisp_pitr_set_locator_set_command)

Definition at line 1650 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:3858

(constructor) VLIB_REGISTER_NODE (lisp_retry_service_node)

Definition at line 3892 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:491

(constructor) VLIB_CLI_COMMAND (lisp_show_adjacencies_command)

Definition at line 535 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:2291

(constructor) VLIB_CLI_COMMAND (lisp_show_eid_table_map_command)

Definition at line 2341 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:2758

(constructor) VLIB_CLI_COMMAND (lisp_show_map_request_command)

Definition at line 2780 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:1522

(constructor) VLIB_CLI_COMMAND (lisp_show_map_request_mode_command)

Definition at line 1532 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:1540

(constructor) VLIB_CLI_COMMAND (lisp_show_map_resolvers_command)

Definition at line 1555 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:1658

(constructor) VLIB_CLI_COMMAND (lisp_show_pitr_command)

Definition at line 1703 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:2271

(constructor) VLIB_CLI_COMMAND (lisp_show_status_command)

Definition at line 2283 of file control.c.