summaryrefslogtreecommitdiffstats
path: root/src/vnet/ethernet/mac_address.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ethernet/mac_address.c')
-rw-r--r--src/vnet/ethernet/mac_address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ethernet/mac_address.c b/src/vnet/ethernet/mac_address.c
index b7981299700..2237c3772b8 100644
--- a/src/vnet/ethernet/mac_address.c
+++ b/src/vnet/ethernet/mac_address.c
@@ -66,9 +66,9 @@ mac_address_increment (mac_address_t * mac)
{
u64 a;
- a = mac_address_as_u64 (mac);
+ a = ethernet_mac_address_u64 (mac->bytes);
a++;
- mac_address_from_u64 (mac, a);
+ ethernet_mac_address_from_u64 (a, mac->bytes);
}
/*