* limitations under the License.
*/
-option version = "2.3.0";
+option version = "4.1.0";
import "vnet/ip/ip_types.api";
@param ip4_prefix - Rule IPv4 prefix
@param ip6_src - MAP domain IPv6 BR address / Tunnel source
@param ea_bits_len - Embedded Address bits length
- @param psid_offset - Port Set Identifider (PSID) offset
+ @param psid_offset - Port Set Identifier (PSID) offset
@param psid_length - PSID length
@param mtu - MTU
+ @param tag - A user field stored with the MAP
*/
define map_add_domain
{
u8 ea_bits_len;
u8 psid_offset;
u8 psid_length;
- bool is_translation;
- bool is_rfc6052;
u16 mtu;
+ string tag[64];
};
/** \brief Reply for MAP domain add
u32 context;
};
+/** \brief Details about a single MAP domain
+ @param context - returned sender context, to match reply w/ request
+ @param domain_index - MAP domain index
+ @param ip6_prefix - Rule IPv6 prefix
+ @param ip4_prefix - Rule IPv4 prefix
+ @param ip6_src - MAP domain IPv6 BR address / Tunnel source
+ @param ea_bits_len - Embedded Address bits length
+ @param psid_offset - Port Set Identifier (PSID) offset
+ @param psid_length - PSID length
+ @param flags -
+ @param mtu - MTU
+ @param tag - The user field stored with the MAP at creation time
+*/
define map_domain_details
{
u32 context;
u8 psid_length;
u8 flags;
u16 mtu;
- bool is_translation;
+ string tag[64];
};
define map_rule_dump
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
/** \brief Set MAP traffic class parameters
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
- @param copy - 1 = copy packet class/TOS field, 0 = use class instead
- @param class - class field value when copy == 0
+ @param copy - 1 = copy packet class/TOS field, 0 = use tc_class instead
+ @param tc_class - class field value when copy == 0
*/
autoreply define map_param_set_traffic_class
{
u32 client_index;
u32 context;
bool copy;
- u8 class;
+ u8 tc_class;
+};
+
+
+/** \brief Set MAP TCP parameters
+ @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;
};