diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-10-16 05:48:23 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-10-31 15:48:45 +0000 |
commit | 0a8840df8ea6d4936d080c111f2b361f575a773d (patch) | |
tree | 64b8acb835a3968a910f315bcfe58c656fb39c82 /src/vnet/lisp-cp/control.h | |
parent | 57938f63cc6743193c76d4fa89ad3250a5f76b56 (diff) |
LISP: add P-ITR/P-ETR/xTR API handlers, ONE-24
Change-Id: I25937cd7470c826d1e833e65530ae959c39139d8
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp/control.h')
-rw-r--r-- | src/vnet/lisp-cp/control.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/vnet/lisp-cp/control.h b/src/vnet/lisp-cp/control.h index a6da81880db..ac18768f88a 100644 --- a/src/vnet/lisp-cp/control.h +++ b/src/vnet/lisp-cp/control.h @@ -117,7 +117,10 @@ typedef enum } map_request_mode_t; #define foreach_lisp_flag_bit \ - _(USE_PETR, "Use Proxy-ETR") \ + _(USE_PETR, "Use Proxy-ETR") \ + _(XTR_MODE, "ITR/ETR mode") \ + _(PETR_MODE, "Use Proxy-ETR") \ + _(PITR_MODE, "Proxy-ITR mode") \ _(STATS_ENABLED, "Statistics enabled") typedef enum lisp_flag_bits @@ -246,12 +249,10 @@ typedef struct /* Proxy ITR map index */ u32 pitr_map_index; - /** Proxy ETR map index */ + /** Proxy ETR map index used for 'use-petr'. + * Not related to PETR tunnel mode */ u32 petr_map_index; - /* LISP PITR mode */ - u8 lisp_pitr; - /* mapping index for NSH */ u32 nsh_map_index; @@ -416,6 +417,13 @@ lisp_api_ndp_entry_t *vnet_lisp_ndp_entries_get_by_bd (u32 bd); u32 vnet_lisp_set_transport_protocol (u8 protocol); lisp_transport_protocol_t vnet_lisp_get_transport_protocol (void); +extern int vnet_lisp_enable_disable_xtr_mode (u8 is_enabled); +extern int vnet_lisp_enable_disable_pitr_mode (u8 is_enabled); +extern int vnet_lisp_enable_disable_petr_mode (u8 is_enabled); +extern u8 vnet_lisp_get_xtr_mode (void); +extern u8 vnet_lisp_get_pitr_mode (void); +extern u8 vnet_lisp_get_petr_mode (void); + map_records_arg_t *parse_map_reply (vlib_buffer_t * b); always_inline mapping_t * |