diff --git a/src/utils/common.h b/src/utils/common.h index bede21e57..ce17c8011 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -543,6 +543,11 @@ static inline int is_multicast_ether_addr(const u8 *a) return a[0] & 0x01; } +static inline bool ether_addr_equal(const u8 *a, const u8 *b) +{ + return os_memcmp(a, b, ETH_ALEN) == 0; +} + #define broadcast_ether_addr (const u8 *) "\xff\xff\xff\xff\xff\xff" #include "wpa_debug.h"