SysTutorials

Linux Manual Pages › Section 9

eth_hw_addr_random(9)

eth_hw_addr_random - Generate software assigned random Ethernet and set device flag

Synopsis

void eth_hw_addr_random(struct net_device *dev);

Arguments

dev

pointer to net_device structure

Description

Generate a random Ethernet address (MAC) to be used by a net device and set addr_assign_type so the state can be read by sysfs and be used by userspace.

Copyright