1COMPARE_ETHER_ADDR_6(9)     Network device support     COMPARE_ETHER_ADDR_6(9)
2
3
4

NAME

6       compare_ether_addr_64bits - Compare two Ethernet addresses
7

SYNOPSIS

9       unsigned compare_ether_addr_64bits(const u8 addr1[6+2],
10                                          const u8 addr2[6+2]);
11

ARGUMENTS

13       addr1[6+2]
14           Pointer to an array of 8 bytes
15
16       addr2[6+2]
17           Pointer to an other array of 8 bytes
18

DESCRIPTION

20       Compare two ethernet addresses, returns 0 if equal. Same result than
21       “memcmp(addr1, addr2, ETH_ALEN)” but without conditional branches, and
22       possibly long word memory accesses on CPU allowing cheap unaligned
23       memory reads. arrays = { byte1, byte2, byte3, byte4, byte6, byte7,
24       pad1, pad2}
25
26       Please note that alignment of addr1 & addr2 is only guaranted to be 16
27       bits.
28
30Kernel Hackers Manual 2.6.         June 2019           COMPARE_ETHER_ADDR_6(9)
Impressum