batadv_inte...set_mac_addr(9)
π
batadv_interface_set_mac_addr β the glow-up page π
okay so real talk, this is a Kernel API Manual page for batadv_inte...set_mac_addr(9) and it's basically the makeover function for your mesh interface's MAC address. bestie, let's get into it β¨
β¨ NAME β¨
batadv_interface_set_mac_addr β change the MAC address of a mesh interface π
π¦ SYNOPSIS π¦
int batadv_interface_set_mac_addr (struct net_device *dev , void *p );
that's the whole vibe check right there, no cap π
πΈ ARGUMENTS πΈ
devβ the mesh interface to modify π this is the main character, the one getting the new lookpβ pointer to astruct sockaddrholding the new MAC address π«Ά like, that's where the fresh address lives
π§ DESCRIPTION π§
Replace the MAC address of the mesh interface. That's the whole errand, honestly π
but wait, there's lore: if the mesh is already active, it also updates the local translation table entries for all configured VLANs so that the new MAC is announced and the old one is removed. it's giving "not just a glow-up, a whole rebrand" ππ like every VLAN needs to hear about the new address, and the old one gets ghosted. iconic.
β RETURN β
0 on success or negative error number in case of failure π₯² (we love a zero, we do not love a negative number, but it happens)
π SEE ALSO π
Kernel file ./net/batman-adv/mesh-interface.c, plus the whole friend group right here β go say hi, iykyk:
batadv_skb_head_push(9)batadv_sum_counter(9)batadv_interface_stats(9)batadv_interface_change_mtu(9)batadv_interface_set_rx_mode(9)batadv_interface_tx(9)batadv_interface_rx(9)batadv_meshif_vlan_release(9)batadv_meshif_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_vid(9)batadv_interface_kill_vid(9)batadv_set_lockdep_class_one(9)batadv_set_lockdep_class(9)batadv_meshif_init_late(9)batadv_meshif_slave_add(9)batadv_meshif_slave_del(9)batadv_get_drvinfo(9)batadv_get_strings(9)batadv_get_ethtool_stats(9)batadv_get_sset_count(9)batadv_meshif_free(9)batadv_meshif_init_early(9)batadv_meshif_validate(9)batadv_meshif_newlink(9)batadv_meshif_destroy_netlink(9)batadv_meshif_is_valid(9)
no cap, that's the entire page. every option, every reference, every crumb accounted for π
and that's a wrap bestie π this page lives in ./net/batman-adv and it's dated October 2026 β slay, see you in the future ππ
π¦ 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