Name

eth_hw_addr_random — Generate software assigned random Ethernet and set device flag

Synopsis

void eth_hw_addr_random (struct net_device * dev);
 

Arguments

struct net_device * 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.