table of contents
other versions
- wheezy 3.2.78-1
DEV_HW_ADDR_RANDOM(9) | Network device support | DEV_HW_ADDR_RANDOM(9) |
NAME¶
dev_hw_addr_random - Create random MAC and set device flagSYNOPSIS¶
void
dev_hw_addr_random(struct net_device * dev,
u8 * hwaddr);
ARGUMENTS¶
devpointer to net_device structure
hwaddr
Pointer to a six-byte array containing the
Ethernet address
DESCRIPTION¶
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.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |