aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
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/vnet/ip
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/vnet/ip')
-rw-r--r--src/vnet/ip/ip_types.api10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api
index e418ed3a1c6..ad24d6e65ce 100644
--- a/src/vnet/ip/ip_types.api
+++ b/src/vnet/ip/ip_types.api
@@ -48,3 +48,13 @@ typedef mprefix {
vl_api_address_union_t grp_address;
vl_api_address_union_t src_address;
};
+
+typedef ip6_prefix {
+ vl_api_ip6_address_t prefix;
+ u8 len;
+};
+
+typedef ip4_prefix {
+ vl_api_ip4_address_t prefix;
+ u8 len;
+};