batadv_v_iface_update_mac(9)
π batadv_v_iface_update_mac β a Kernel API Manual moment π
okay so bestie, we're in the <purple>Kernel API Manual</purple> today and the main character is literally batadv_v_iface_update_mac(9) β yes that whole thing is the title, she's got a long name and she EARNED it. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
batadv_v_iface_update_mac β the function that reacts to a hard-interface MAC address change. that's it, that's the whole vibe check π
πΈ SYNOPSIS πΈ
void batadv_v_iface_update_mac (struct batadv_hard_iface *hard_iface );
like, it returns void (void = no receipts, she gives nothing back) and it takes exactly one thing. slay.
π ARGUMENTS π
hard_ifaceβ the modified interface. that's the one that just went through a whole glow-up (aka a MAC address change) and needs everybody told about it β¨
π¦ DESCRIPTION π¦
okay so here's the tea π΅ β if the modified interface is the <hotpink>primary one</hotpink>, then this function updates the originator address inside the <cyan>ELP</cyan> and <cyan>OGM</cyan> messages so they reflect the new MAC address. that's the entire job. she's not doing extra, she's not doing less, she's doing it correctly and honestly? iconic.
and ngl, the "if" is doing a lot of heavy lifting there β if it's not the primary interface, this whole thing is basically a no-op for you. read the room π
π SEE ALSO π
so you wanna go deeper? obsessed, respect. go read the <purple>Kernel file ./net/batman-adv/bat_v.c</purple> first, then literally all of her friends:
batadv_v_iface_activate(9)batadv_v_iface_enable(9)batadv_v_iface_disable(9)batadv_v_primary_iface_set(9)batadv_v_hardif_neigh_init(9)batadv_v_neigh_dump_neigh(9)batadv_v_neigh_dump_hardif(9)batadv_v_neigh_dump(9)batadv_v_orig_dump_subentry(9)batadv_v_orig_dump_entry(9)batadv_v_orig_dump_bucket(9)batadv_v_orig_dump(9)batadv_v_neigh_cmp(9)batadv_v_neigh_is_sob(9)batadv_v_init_sel_class(9)batadv_v_gw_throughput_get(9)batadv_v_gw_get_best_gw_node(9)batadv_v_gw_is_eligible(9)batadv_v_gw_dump_entry(9)batadv_v_gw_dump(9)batadv_v_hardif_init(9)batadv_v_mesh_init(9)batadv_v_mesh_free(9)batadv_v_init(9)batadv_v_deinit(9)
that's the whole group chat fr fr, and yes you should read all of them, i don't make the rules π β¨
π the sign-off π
so this little baddie lives in <pink>./net/batman-adv</pink>, dated <yellow>October 2026</yellow>, and goes by batadv_v_iface_update_mac(9) β that's the source, the version, and the date all wrapped up with a bow π no cap, that's it, you're done, go touch some grass and then go update your originator address πβπ
π¦ 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