is_etherdev_addr(9)

is_etherdev_addr9

Tell if given ethernet address belongs to the device.

Usage

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

Overview

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.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.