Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/etherdevice.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | ether_addr_copy(u8 * dst, const u8 * src) | ||||
memcpy(dst, src, 6); | memcpy(dst, src, 6); | ||||
} | } | ||||
static inline bool | static inline bool | ||||
ether_addr_equal(const u8 *pa, const u8 *pb) | ether_addr_equal(const u8 *pa, const u8 *pb) | ||||
{ | { | ||||
return (memcmp(pa, pb, 6) == 0); | return (memcmp(pa, pb, 6) == 0); | ||||
} | } | ||||
#define ether_addr_equal_unaligned(_pa, _pb) ether_addr_equal((_pa), (_pb)) | |||||
hselasky: Too many parenthesis (not needed here)!
((_pa), (_pb)) -> (_pa, _pb)
| |||||
static inline bool | static inline bool | ||||
ether_addr_equal_64bits(const u8 *pa, const u8 *pb) | ether_addr_equal_64bits(const u8 *pa, const u8 *pb) | ||||
{ | { | ||||
return (memcmp(pa, pb, 6) == 0); | return (memcmp(pa, pb, 6) == 0); | ||||
} | } | ||||
static inline void | static inline void | ||||
Show All 21 Lines |
Too many parenthesis (not needed here)!
((_pa), (_pb)) -> (_pa, _pb)