MAP: Convert from DPO to input feature.
[vpp.git] / src / plugins / map / map.api
index 78e7bec..f64fe4c 100644 (file)
@@ -13,7 +13,7 @@
  * limitations under the License.
  */
 
-option version = "2.3.0";
+option version = "3.0.0";
 
 import "vnet/ip/ip_types.api";
 
@@ -38,8 +38,6 @@ define map_add_domain
   u8 ea_bits_len;
   u8 psid_offset;
   u8 psid_length;
-  bool is_translation;
-  bool is_rfc6052;
   u16 mtu;
 };
 
@@ -108,7 +106,6 @@ define map_domain_details
   u8 psid_length;
   u8 flags;
   u16 mtu;
-  bool is_translation;
 };
 
 define map_rule_dump
@@ -125,6 +122,22 @@ define map_rule_details
   u16 psid;
 };
 
+/** \brief Enable or disable a MAP interface
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @param sw_if_index - 
+    @param is_enable - 0=disable, 1=enable interface
+    @param is_translation -  0=encapsulation, 1=translation
+*/
+autoreply define map_if_enable_disable
+{
+  u32 client_index;
+  u32 context;
+  u32 sw_if_index;
+  bool is_enable;
+  bool is_translation; /* 0 - encapsulation, 1 - translation */
+};
+
 /** \brief Request for a single block of summary stats
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
@@ -264,6 +277,19 @@ autoreply define map_param_set_traffic_class
 };
 
 
+/** \brief Set MAP TCP parammeters
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @parma tcp_mss - TCP MSS clamping value
+*/
+autoreply define map_param_set_tcp
+{
+  u32 client_index;
+  u32 context;
+  u16 tcp_mss;
+};
+
+
 /** \brief Request for a single block of MAP parameters
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request