diff options
author | Jon Loeliger <jdl@netgate.com> | 2017-03-30 08:39:33 -0500 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-04-03 08:47:08 +0000 |
commit | 10c273bc24678121c18bd3790da08e15a8724def (patch) | |
tree | 1b6b96eecedf38c27e8c3cc3c6093ffc3abcba3a /src/vnet/interface.api | |
parent | fa5d19829759cef45cc34efe844d9471f5a1fc61 (diff) |
Add an API call to set interface MAC addresses.
Change-Id: I316862e1d33e5d10c058317cc4827304e55ceba4
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vnet/interface.api')
-rw-r--r-- | src/vnet/interface.api | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/vnet/interface.api b/src/vnet/interface.api index afa8bb5e7c4..85fd73fb280 100644 --- a/src/vnet/interface.api +++ b/src/vnet/interface.api @@ -346,9 +346,33 @@ define sw_interface_tag_add_del_reply u32 context; i32 retval; }; + +/** \brief Set an 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 set + @param mac_addr - the new MAC address +*/ +define sw_interface_set_mac_address +{ + u32 client_index; + u32 context; + u32 sw_if_index; + u8 mac_address[6]; +}; + +/** \brief Reply to setting an interface MAC address request + @param context - sender context which was passed in the request + @param retval - return code for the request +*/ +define sw_interface_set_mac_address_reply +{ + u32 context; + i32 retval; +}; + /* * Local Variables: * eval: (c-set-style "gnu") * End: */ - |