eth_mac_addr(9)
π eth_mac_addr(9) β like, the Kernel API Manual page, bestie
okay so real talk, this is a page from the Kernel API Manual and it's called eth_mac_addr(9). Yes the (9) is the section, no we're not gonna fight about it. Let's go πΈ
β¨ NAME β¨
eth_mac_addr β set a brand new Ethernet hardware address π
π¦ SYNOPSIS π¦
int eth_mac_addr (struct net_device *dev , void *p );
π ARGUMENTS π
devβ the network device in question π«Άpβ the socket address
π DESCRIPTION π
Change the hardware address of the device. Iconic behaviour, honestly.
Careful though bestie!! This doesn't change hardware matching, so it needs to be overridden for most real devices. Like, it's giving "starter pack function" β do not assume it does the full job on a real device, no cap. π
π₯ SEE ALSO π₯
Kernel file ./net/ethernet/eth.c and the whole squad:
eth_header(9)eth_get_headlen(9)eth_type_trans(9)eth_header_cache(9)eth_header_cache_update(9)eth_header_parse_protocol(9)eth_prepare_mac_addr_change(9)eth_commit_mac_addr_change(9)ether_setup(9)alloc_etherdev_mqs(9)platform_get_ethdev_address(9)nvmem_get_mac_address(9)fwnode_get_mac_address(9)device_get_mac_address(9)device_get_ethdev_address(9)
k that's the whole page, ilysm π§π β brought to you by the ./net/ethernet girlies, dated October 2026, and yes that's literally the whole version/date situation. mwah ππ
π¦ 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