---
name: "eth_hw_addr_random"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/eth_hw_addr_random"
---

# eth\_hw\_addr\_random(9)

Generate software assigned random Ethernet and set device flag

## 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

*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
