---
name: "is_valid_ether_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_valid_ether_addr"
---

# is\_valid\_ether\_addr(9)

Determine if the given Ethernet address is valid

## NAME

is\_valid\_ether\_addr - Determine if the given Ethernet address is valid

## SYNOPSIS

**bool is\_valid\_ether\_addr(const u8 \*** *addr***);**

## ARGUMENTS

*addr*

Pointer to a six-byte array containing the Ethernet address

## DESCRIPTION

Check that the Ethernet address (MAC) is not 00:00:00:00:00:00, is not a multicast address, and is not FF:FF:FF:FF:FF:FF.

Return true if the address is valid.

Please note: addr must be aligned to u16.

## COPYRIGHT
