---
name: "ether_addr_equal_masked"
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_masked"
---

# ether\_addr\_equal\_masked(9)

Compare two Ethernet addresses with a mask

## NAME

ether\_addr\_equal\_masked - Compare two Ethernet addresses with a mask

## SYNOPSIS

**bool ether\_addr\_equal\_masked(const u8 \*** *addr1***, const u8 \*** *addr2***, const u8 \*** *mask***);**

## ARGUMENTS

*addr1*

Pointer to a six-byte array containing the 1st Ethernet address

*addr2*

Pointer to a six-byte array containing the 2nd Ethernet address

*mask*

Pointer to a six-byte array containing the Ethernet address bitmask

## DESCRIPTION

Compare two Ethernet addresses with a mask, returns true if for every bit set in the bitmask the equivalent bits in the ethernet addresses are equal. Using a mask with all bits set is a slower ether\_addr\_equal.

## COPYRIGHT
