_MR_MODE_MAX
} map_request_mode_t;
+#define foreach_lisp_flag_bit \
+ _(USE_PETR, "Use Proxy-ETR") \
+ _(STATS_ENABLED, "Statistics enabled")
+
+typedef enum lisp_flag_bits
+{
+#define _(sym, str) LISP_FLAG_BIT_##sym,
+ foreach_lisp_flag_bit
+#undef _
+} lisp_flag_bits_e;
+
+typedef enum lisp_flags
+{
+#define _(sym, str) LISP_FLAG_##sym = 1 << LISP_FLAG_BIT_##sym,
+ foreach_lisp_flag_bit
+#undef _
+} lisp_flags_e;
+
typedef struct
{
+ u32 flags;
+
/* LISP feature status */
u8 is_enabled;
/* track l2 and l3 interfaces that have been created for vni */
uword *l2_dp_intf_by_vni;
- /* Proxy ETR map index */
+ /* Proxy ITR map index */
u32 pitr_map_index;
+ /** Proxy ETR map index */
+ u32 petr_map_index;
+
/* LISP PITR mode */
u8 lisp_pitr;
return &lisp_control_main;
}
+void
+get_src_and_dst_eids_from_buffer (lisp_cp_main_t * lcm, vlib_buffer_t * b,
+ gid_address_t * src, gid_address_t * dst,
+ u16 type);
+
typedef struct
{
u8 is_add;
u8 key_id;
} vnet_lisp_add_del_mapping_args_t;
+typedef struct
+{
+ u64 nonce;
+ u8 is_rloc_probe;
+ mapping_t *mappings;
+} map_records_arg_t;
+
int
vnet_lisp_map_cache_add_del (vnet_lisp_add_del_mapping_args_t * a,
u32 * map_index);
u8 vnet_lisp_enable_disable_status (void);
int vnet_lisp_pitr_set_locator_set (u8 * locator_set_name, u8 is_add);
+int vnet_lisp_use_petr (ip_address_t * ip, u8 is_add);
typedef struct
{
u8 vnet_lisp_map_register_state_get (void);
u8 vnet_lisp_rloc_probe_state_get (void);
+map_records_arg_t *parse_map_reply (vlib_buffer_t * b);
+
+always_inline mapping_t *
+lisp_get_petr_mapping (lisp_cp_main_t * lcm)
+{
+ return pool_elt_at_index (lcm->mapping_pool, lcm->petr_map_index);
+}
+
#endif /* VNET_CONTROL_H_ */
/*