batadv_is_on_batman_iface(9)
π batadv_is_on_batman_iface(9) β Kernel API Manual π
β¨ NAME β¨
okay so bestie, this is batadv_is_on_batman_iface β it literally checks if a device is a batman iface descendant. iconic behavior, no cap.
π SYNOPSIS π
bool batadv_is_on_batman_iface (const struct net_device *net_dev );
π ARGUMENTS π
net_devβ the device to check. that's the one, bestie π«Ά
π¦ DESCRIPTION π¦
okay so picture this: the user creates any virtual device on top of a batman-adv interface. we highkey need to prevent this new interface from being used to create a new mesh network, because that behaviour would lead to a batman-over-batman configuration and we are not doing that π
so this function recursively checks all the fathers of the device passed as argument, looking for a batman-adv mesh interface. yes, βfathersβ is the word here β we don't make the rules, we just recursively vibe-check them π
π RETURN π
true if the device is descendant of a batman-adv mesh interface (or if it is a batman-adv interface itself), false otherwise. periodt. β¨
π₯ SEE ALSO π₯
Kernel file ./net/batman-adv/hard-interface.c β and here's the whole function friend group, bestie:
batadv_hardif_release(9)batadv_hardif_get_by_netdev(9)batadv_getlink_net(9)batadv_mutual_parents(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_update_addr(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)
π cute little sign-off: source/version ./net/batman-adv Β· date October 2026 Β· batadv_is_on_batman_iface(9) β byeee bestie, go check those fathers recursively π«Άπ
π¦ 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