---
name: "dev_set_mac_address"
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/dev_set_mac_address"
---

# dev\_set\_mac\_address(9)

Change Media Access Control Address

## NAME

dev\_set\_mac\_address - Change Media Access Control Address

## SYNOPSIS

**int dev\_set\_mac\_address(struct net\_device \*** *dev***, struct sockaddr \*** *sa***);**

## ARGUMENTS

*dev*

device

*sa*

new address

## DESCRIPTION

Change the hardware (MAC) address of the device

## COPYRIGHT
