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

NAME

6       ether_addr_equal_64bits - Compare two Ethernet addresses
7

SYNOPSIS

9       bool ether_addr_equal_64bits(const u8 addr1[6+2], const u8 addr2[6+2]);
10

ARGUMENTS

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

DESCRIPTION

19       Compare two ethernet addresses, returns true if equal, false otherwise.
20
21       The function doesn´t need any conditional branches and possibly uses
22       word memory accesses on CPU allowing cheap unaligned memory reads.
23       arrays = { byte1, byte2, byte3, byte4, byte6, byte7, pad1, pad2}
24
25       Please note that alignment of addr1 & addr2 is only guaranted to be 16
26       bits.
27
29Kernel Hackers Manual 2.6.         June 2019           ETHER_ADDR_EQUAL_64B(9)
Impressum