aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-05-24 18:09:37 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-05-25 18:01:47 +0000
commit834227ba6e80dc0899d2372ae8986241f5658c4e (patch)
treedcbca72443c4880eca2a2ee6018d13f7d00127a5 /sys/compat
parentff09f9133f2fb80f705c2c742fc34291b05140af (diff)
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/etherdevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/etherdevice.h b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
index 392f395a5feb..9062cd562347 100644
--- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
@@ -82,10 +82,11 @@ ether_addr_copy(u8 * dst, const u8 * src)
}
static inline bool
-ether_addr_equal(const u8 *pa, const u8 *pb)
+ether_addr_equal_unaligned(const u8 *pa, const u8 *pb)
{
return (memcmp(pa, pb, 6) == 0);
}
+#define ether_addr_equal(_pa, _pb) ether_addr_equal_unaligned(_pa, _pb)
static inline bool
ether_addr_equal_64bits(const u8 *pa, const u8 *pb)