aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-10-30 03:47:20 -0700
committerDamjan Marion <dmarion@me.com>2018-10-30 13:37:41 +0000
commit8f8994ad599fc556e2325a4f5f9ea33eeb3e25b4 (patch)
tree89c5a69dd420d01cf7ea2fe58c7f4a737a60d9b4 /src/vnet/interface.c
parent1511a4e953a608eeca9cf566c40ef23232f50f57 (diff)
change mac address functions take const mac
Change-Id: Ia68db22b917e9af1394c00e5a6b3df134bfd1568 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/interface.c')
-rw-r--r--src/vnet/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c
index c882a8381b7..0ee3093f383 100644
--- a/src/vnet/interface.c
+++ b/src/vnet/interface.c
@@ -1413,7 +1413,7 @@ vnet_rename_interface (vnet_main_t * vnm, u32 hw_if_index, char *new_name)
static clib_error_t *
vnet_hw_interface_change_mac_address_helper (vnet_main_t * vnm,
u32 hw_if_index,
- u8 * mac_address)
+ const u8 * mac_address)
{
clib_error_t *error = 0;
vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, hw_if_index);
@@ -1458,7 +1458,7 @@ vnet_hw_interface_change_mac_address_helper (vnet_main_t * vnm,
clib_error_t *
vnet_hw_interface_change_mac_address (vnet_main_t * vnm, u32 hw_if_index,
- u8 * mac_address)
+ const u8 * mac_address)
{
return vnet_hw_interface_change_mac_address_helper
(vnm, hw_if_index, mac_address);