batadv_prim..._update_addr(9)
π¦ 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, orNULLif there wasn't one. Yes,NULLis 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: π
batadv_hardif_release(9)batadv_hardif_get_by_netdev(9)batadv_getlink_net(9)batadv_mutual_parents(9)batadv_is_on_batman_iface(9)batadv_is_valid_iface(9)__batadv_get_real_netdev(9)batadv_get_real_netdev(9)batadv_is_wext_netdev(9)batadv_is_cfg80211_netdev(9)batadv_wifi_flags_evaluate(9)batadv_netdev_get_wifi_flags(9)batadv_hardif_get_wifi_flags(9)batadv_is_wifi_hardif(9)batadv_hardif_no_broadcast(9)batadv_hardif_get_active(9)batadv_primary_if_select(9)batadv_hardif_is_iface_up(9)batadv_check_known_mac_addr(9)batadv_hardif_recalc_extra_skbroom(9)batadv_hardif_min_mtu(9)batadv_update_min_mtu(9)batadv_hardif_activate_interface(9)batadv_hardif_deactivate_interface(9)batadv_hardif_enable_interface(9)batadv_hardif_disable_interface(9)batadv_hard_if_event_meshif(9)batadv_wifi_net_device_insert(9)batadv_wifi_net_device_remove(9)batadv_wifi_net_device_update(9)batadv_wifi_net_device_unregister(9)batadv_wifi_net_device_event(9)batadv_hard_if_event(9)batadv_wifi_net_devices_init(9)batadv_wifi_net_devices_deinit(9)
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
- 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