1COMPARE_ETHER_ADDR(9) Network device support COMPARE_ETHER_ADDR(9)
2
3
4
6 compare_ether_addr - Compare two Ethernet addresses
7
9 unsigned compare_ether_addr(const u8 * addr1, const u8 * addr2);
10
12 addr1
13 Pointer to a six-byte array containing the Ethernet address
14
15 addr2
16 Pointer other six-byte array containing the Ethernet address
17
19 Compare two Ethernet addresses, returns 0 if equal, non-zero otherwise.
20 Unlike memcmp, it doesn't return a value suitable for sorting.
21
23Kernel Hackers Manual 3.10 June 2019 COMPARE_ETHER_ADDR(9)