aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-09-06 08:49:55 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-09-06 17:10:39 +0000
commitecdfb2cbee547a113d3700da07c8920924bfb62d (patch)
tree488245c8149ab229468781327d2490688b576aae /src/vnet
parent6011b5e63b6fd51b8eb19b5c999fb1e18e95f157 (diff)
eth_mac_equal takes const pointers
Change-Id: I5a47d30d783dcf000e3ca2bcdc46e7d93654cc37 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ethernet/ethernet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ethernet/ethernet.h b/src/vnet/ethernet/ethernet.h
index 9a23448b3e6..cc44c4e2cf0 100644
--- a/src/vnet/ethernet/ethernet.h
+++ b/src/vnet/ethernet/ethernet.h
@@ -553,7 +553,7 @@ matched:
// Compare two ethernet macs. Return 1 if they are the same, 0 if different
always_inline u32
-eth_mac_equal (u8 * mac1, u8 * mac2)
+eth_mac_equal (const u8 * mac1, const u8 * mac2)
{
return (*((u32 *) (mac1 + 0)) == *((u32 *) (mac2 + 0)) &&
*((u32 *) (mac1 + 2)) == *((u32 *) (mac2 + 2)));