Index: sys/compat/linuxkpi/common/include/linux/etherdevice.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/etherdevice.h +++ sys/compat/linuxkpi/common/include/linux/etherdevice.h @@ -54,7 +54,8 @@ static inline bool is_zero_ether_addr(const u8 * addr) { - return ((addr[0] + addr[1] + addr[2] + addr[3] + addr[4] + addr[5]) == 0x00); + return ((addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]) == + 0x00); } static inline bool @@ -66,7 +67,8 @@ static inline bool is_broadcast_ether_addr(const u8 * addr) { - return ((addr[0] + addr[1] + addr[2] + addr[3] + addr[4] + addr[5]) == (6 * 0xff)); + return ((addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == + 0xff); } static inline bool