diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-05-24 18:09:37 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-05-25 18:01:47 +0000 |
| commit | 834227ba6e80dc0899d2372ae8986241f5658c4e (patch) | |
| tree | dcbca72443c4880eca2a2ee6018d13f7d00127a5 /sys/compat/linuxkpi/common/include/linux/etherdevice.h | |
| parent | ff09f9133f2fb80f705c2c742fc34291b05140af (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/etherdevice.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/etherdevice.h | 3 |
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) |
