aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-06 13:33:35 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-12-06 14:05:04 +0000
commit4a7fc4cf115ec000e534d98c884dcb862a3640e5 (patch)
treea81d1eb1cfe95daceea9cd2ecf30977111bfcf8f
parent6aaee8c7cd356bb8603963889a4a08700a736551 (diff)
igmp: use explicit types in api
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ifdb623c092cf0a9d9e24117edc32c6ddf014052f
-rw-r--r--src/plugins/igmp/igmp.api21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/plugins/igmp/igmp.api b/src/plugins/igmp/igmp.api
index bc98711dd66..c79ff6e3121 100644
--- a/src/plugins/igmp/igmp.api
+++ b/src/plugins/igmp/igmp.api
@@ -18,6 +18,7 @@
option version = "1.0.0";
import "vnet/ip/ip_types.api";
+import "vnet/interface_types.api";
/**
* @brief Filter mode
@@ -65,7 +66,7 @@ typedef igmp_group
{
vl_api_filter_mode_t filter;
u8 n_srcs;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
vl_api_ip4_address_t gaddr;
vl_api_ip4_address_t saddrs[n_srcs];
};
@@ -93,9 +94,9 @@ autoreply define igmp_enable_disable
u32 client_index;
u32 context;
- u8 enable;
+ bool enable;
u8 mode;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
@@ -116,7 +117,7 @@ autoreply define igmp_proxy_device_add_del
u8 add;
u32 vrf_id;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
@@ -135,9 +136,9 @@ autoreply define igmp_proxy_device_add_del_interface
u32 client_index;
u32 context;
- u8 add;
+ bool add;
u32 vrf_id;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
@@ -151,7 +152,7 @@ define igmp_dump
u32 client_index;
u32 context;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
@@ -165,7 +166,7 @@ define igmp_details
{
u32 context;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
vl_api_ip4_address_t saddr;
vl_api_ip4_address_t gaddr;
};
@@ -180,7 +181,7 @@ autoreply define igmp_clear_interface
u32 client_index;
u32 context;
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
};
/**
@@ -215,7 +216,7 @@ service {
*/
define igmp_event
{
- u32 sw_if_index;
+ vl_api_interface_index_t sw_if_index;
vl_api_filter_mode_t filter;
vl_api_ip4_address_t saddr;
vl_api_ip4_address_t gaddr;