summaryrefslogtreecommitdiffstats
path: root/src/plugins/map/map.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-11-22 12:53:00 +0100
committerOle Troan <ot@cisco.com>2018-11-22 21:28:33 +0100
commitffba3c377c679a69fd9507bc8f8bc3acf8258d1e (patch)
treeafb66dc7250eb2597c5bb0075ca303a7cd12c32f /src/plugins/map/map.api
parentfccd1b2b694146506e0efdeee6c23674550fc5d5 (diff)
MAP: Use explicit address/prefix types in API
Change-Id: Ic751fecc4a060eedcdb9eaf5d02e1416c838fd63 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/map/map.api')
-rw-r--r--src/plugins/map/map.api30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/plugins/map/map.api b/src/plugins/map/map.api
index a066b688514..5121b2c234f 100644
--- a/src/plugins/map/map.api
+++ b/src/plugins/map/map.api
@@ -13,7 +13,9 @@
* limitations under the License.
*/
-option version = "1.1.0";
+option version = "2.1.0";
+
+import "vnet/ip/ip_types.api";
/** \brief Add MAP domains
@param client_index - opaque cookie to identify the sender
@@ -21,25 +23,18 @@ option version = "1.1.0";
@param ip6_prefix - Rule IPv6 prefix
@param ip4_prefix - Rule IPv4 prefix
@param ip6_src - MAP domain IPv6 BR address / Tunnel source
- @param ip6_prefix_len - Rule IPv6 prefix length
- @param ip4_prefix_len - Rule IPv4 prefix length
@param ea_bits_len - Embedded Address bits length
@param psid_offset - Port Set Identifider (PSID) offset
@param psid_length - PSID length
- @param is_translation - MAP-E / MAP-T
- @param is_rfc6052 - rfc6052 translation
@param mtu - MTU
*/
define map_add_domain
{
u32 client_index;
u32 context;
- u8 ip6_prefix[16];
- u8 ip4_prefix[4];
- u8 ip6_src[16];
- u8 ip6_prefix_len;
- u8 ip4_prefix_len;
- u8 ip6_src_prefix_len;
+ vl_api_ip6_prefix_t ip6_prefix;
+ vl_api_ip4_prefix_t ip4_prefix;
+ vl_api_ip6_prefix_t ip6_src;
u8 ea_bits_len;
u8 psid_offset;
u8 psid_length;
@@ -87,7 +82,7 @@ autoreply define map_add_del_rule
u32 context;
u32 index;
u8 is_add;
- u8 ip6_dst[16];
+ vl_api_ip6_address_t ip6_dst;
u16 psid;
};
@@ -105,12 +100,9 @@ define map_domain_details
{
u32 context;
u32 domain_index;
- u8 ip6_prefix[16];
- u8 ip4_prefix[4];
- u8 ip6_src[16];
- u8 ip6_prefix_len;
- u8 ip4_prefix_len;
- u8 ip6_src_len;
+ vl_api_ip6_prefix_t ip6_prefix;
+ vl_api_ip4_prefix_t ip4_prefix;
+ vl_api_ip6_prefix_t ip6_src;
u8 ea_bits_len;
u8 psid_offset;
u8 psid_length;
@@ -129,7 +121,7 @@ define map_rule_dump
define map_rule_details
{
u32 context;
- u8 ip6_dst[16];
+ vl_api_ip6_address_t ip6_dst;
u16 psid;
};