dev_hw_addr_random(9)

dev_hw_addr_random9

Create random mac and set device flag

Usage

void dev_hw_addr_random(struct net_device * dev, u8 * hwaddr);

Arguments

dev

pointer to net_device structure

hwaddr

Pointer to a six-byte array containing the Ethernet address

Overview

Generate random MAC to be used by a device and set addr_assign_type so the state can be read by sysfs and be used by udev.

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.