---
name: "ether_addr_equal_64bits"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ether_addr_equal_64bits"
---

# ether\_addr\_equal\_64bits(9)

Compare two Ethernet addresses

## NAME

ether\_addr\_equal\_64bits - Compare two Ethernet addresses

## SYNOPSIS

**bool ether\_addr\_equal\_64bits(const u8** *addr1\[6+2\]***, const u8** *addr2\[6+2\]***);**

## ARGUMENTS

*addr1\[6+2\]*

Pointer to an array of 8 bytes

*addr2\[6+2\]*

Pointer to an other array of 8 bytes

## DESCRIPTION

Compare two Ethernet addresses, returns true if equal, false otherwise.

The function doesn't need any conditional branches and possibly uses word memory accesses on CPU allowing cheap unaligned memory reads. arrays = { byte1, byte2, byte3, byte4, byte5, byte6, pad1, pad2 }

Please note that alignment of addr1 & addr2 are only guaranteed to be 16 bits.

## COPYRIGHT
