aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.api
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-02-01 15:18:49 +0100
committerOle Trøan <otroan@employees.org>2018-03-16 20:07:51 +0000
commitc03742346f0f3f08b83b0d2944bf72e19ea26191 (patch)
tree124cb6dc5cd45d070d2649bcf64916b27bf7bd01 /src/vnet/interface.api
parentff92efe1074e338f91e59d9c27125d102516e7bf (diff)
IPv6 ND Router discovery control plane (VPP-1095)
Change-Id: I4b5b60e7c6f618bb935eab1e96a2e79bbb14f58f Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/vnet/interface.api')
-rw-r--r--src/vnet/interface.api26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/vnet/interface.api b/src/vnet/interface.api
index a5a9184f0bb..9dfb0c3257f 100644
--- a/src/vnet/interface.api
+++ b/src/vnet/interface.api
@@ -1,4 +1,4 @@
-option version = "1.0.0";
+option version = "1.1.0";
service {
rpc want_interface_events returns want_interface_events_reply
@@ -336,6 +336,30 @@ autoreply define sw_interface_set_mac_address
u8 mac_address[6];
};
+/** \brief Get interface's MAC address
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param sw_if_index - the interface whose MAC will be returned
+*/
+define sw_interface_get_mac_address
+{
+ u32 client_index;
+ u32 context;
+ u32 sw_if_index;
+};
+
+/** \brief Reply for get interface's MAC address request
+ @param context - returned sender context, to match reply w/ request
+ @param retval - return code
+ @param mac_addr - returned interface's MAC address
+*/
+define sw_interface_get_mac_address_reply
+{
+ u32 context;
+ i32 retval;
+ u8 mac_address[6];
+};
+
/** \brief Set an interface's rx-mode
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request