---
name: "is_etherdev_addr"
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/is_etherdev_addr"
---

# is\_etherdev\_addr(9)

Tell if given Ethernet address belongs to the device.

## NAME

is\_etherdev\_addr - Tell if given Ethernet address belongs to the device.

## SYNOPSIS

**bool is\_etherdev\_addr(const struct net\_device \*** *dev***, const u8** *addr\[6 + 2\]***);**

## ARGUMENTS

*dev*

Pointer to a device structure

*addr\[6 + 2\]*

Pointer to a six-byte array containing the Ethernet address

## DESCRIPTION

Compare passed address with all addresses of the device. Return true if the address if one of the device addresses.

Note that this function calls **ether\_addr\_equal\_64bits** so take care of the right padding.

## COPYRIGHT
