dev_set_mac_address(9)
π dev_set_mac_address(9) π
okay so bestie, welcome to dev_set_mac_address(9) from the Kernel API Manual β we're in kernel API territory and this page is literally all about changing a device's Media Access Control Address, aka the MAC address π
β¨
πΈ NAME πΈ
dev_set_mac_address β change Media Access Control Address
β¨ SYNOPSIS β¨
no cap, here's the whole signature exactly as it is:
int dev_set_mac_address (struct net_device *dev , struct
sockaddr_storage *ss , struct netlink_ext_ack *extack );
π ARGUMENTS π
devβ device. the device you're working with, bestie π«Άssβ new address. the new address, periodt β¨extackβ netlink extended ack. the netlink extended ack, iykyk π
π¦ DESCRIPTION π¦
Change the hardware (MAC) address of the device. that's the whole vibe β it changes the hardware (MAC) address of the device π
π RETURN π
0on success π-errnoon failure π
π SEE ALSO π
Kernel file: ./net/core/dev_api.c β and these are the SEE ALSO besties, all accounted for:
dev_change_name(9)dev_set_alias(9)dev_change_flags(9)dev_set_group(9)dev_change_net_namespace(9)dev_change_carrier(9)dev_change_tx_queue_len(9)dev_change_proto_down(9)dev_open(9)dev_close(9)dev_disable_lro(9)dev_set_promiscuity(9)dev_set_allmulti(9)netdev_state_change(9)
xoxo from the Kernel API Manual, source ./net/core, dated October 2026 β dev_set_mac_address(9) signing off ππ«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms