batadv_prim..._update_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME

batadv_primary_if_update_addr β€” okay so this is the function that propagates the new primary interface MAC address to all dependent components. That's the whole vibe: new primary MAC, everybody who depends on it needs to hear about it, bestie. πŸ’…

Also hi, this page lives in the Kernel API Manual β€” just so you know where you are. ✨


✨ SYNOPSIS

void batadv_primary_if_update_addr (struct batadv_priv *bat_priv ,
struct batadv_hard_iface *oldif );

So it returns void β€” meaning it hands you nothing back, it just does the thing and dips. 🫢


πŸ’… ARGUMENTS

  • bat_priv β€” the bat priv with all the mesh interface information. Like, this is the whole main-character struct holding everything the mesh knows about itself. πŸ‘‘
  • oldif β€” the previously used primary interface, or NULL if there wasn't one. Yes, NULL is a legit value here, not a mistake. πŸŽ€

πŸŽ€ DESCRIPTION

So here's the tea: this function informs DAT and BLA that the originator address has changed, so they can adjust their state accordingly. That's it, that's the whole job β€” no cap. Two components, one address change, everybody gets the memo. πŸ’–

Like, imagine the primary interface got a glow-up and its MAC address is different now. DAT and BLA are out here holding onto the old deets, and this function is the group-chat announcement. "bestie, the originator address changed, update your state." Periodt. 🌸


πŸ”₯ SEE ALSO

Kernel file ./net/batman-adv/hard-interface.c β€” and honestly the whole hard-interface friend group, they all showed up: πŸ’€

Not me listing all 35 of them β€” but the manpage said so, and we don't skip the boring parts in this house. 🧚

okay that's the whole page, bestie! it was giving Kernel API Manual, sourced from ./net/batman-adv, dated October 2026, and yeah the man name is literally batadv_prim..._update_addr(9) because even the title got truncated πŸ’€ βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from