batadv_orig_to_router(9)
π batadv_orig_to_router(9)
ok so this is a page from the Kernel API Manual bestie, and it's about batadv_orig_to_router β the little function that finds you the next hop neighbor for an originator address. it's giving matchmaker energy fr fr π
β¨ NAME β¨
batadv_orig_to_router β get next hop neighbor to an orig address π¦
πΈ SYNOPSIS πΈ
struct batadv_neigh_node * batadv_orig_to_router (struct batadv_priv
*bat_priv , u8 *orig_addr , struct batadv_hard_iface *if_outgoing );
like, that's the whole signature, no cap. it hands you back a struct batadv_neigh_node * and takes those three args π
π ARGUMENTS π
bat_privβ the bat priv that's holding all the mesh interface information. it's literally the main character of this whole thing πorig_addrβ the originator MAC address you're searching the best next hop router for. yes, this is the address you're trying to route toward π§if_outgoingβ the interface where the payload packet has been received, or the OGM should be sent to. so it's either incoming-payload vibes or outgoing-OGM vibes, depending π₯
β RETURN β
you get back a neighbor node β and it's the best router towards the given originator address. slay. that's the good one, the one you want π«Ά
π SEE ALSO π
the kernel file ./net/batman-adv/originator.c and honestly a whole friend group of functions, all right here:
batadv_orig_hash_find(9)batadv_compare_orig(9)batadv_orig_node_vlan_get(9)batadv_vlan_id_valid(9)batadv_orig_node_vlan_new(9)batadv_orig_node_vlan_release(9)batadv_originator_init(9)batadv_neigh_ifinfo_release(9)batadv_hardif_neigh_release(9)batadv_neigh_node_release(9)batadv_orig_router_get(9)batadv_orig_ifinfo_get(9)batadv_orig_ifinfo_new(9)batadv_neigh_ifinfo_get(9)batadv_neigh_ifinfo_new(9)batadv_neigh_node_get(9)batadv_hardif_neigh_create(9)batadv_hardif_neigh_get_or_create(9)batadv_hardif_neigh_get(9)batadv_neigh_node_create(9)batadv_neigh_node_get_or_create(9)batadv_hardif_neigh_dump(9)batadv_orig_ifinfo_release(9)batadv_orig_node_free_rcu(9)batadv_orig_node_release(9)batadv_originator_free(9)batadv_orig_node_new(9)batadv_purge_neigh_ifinfo(9)batadv_purge_orig_ifinfo(9)batadv_purge_orig_neighbors(9)batadv_find_best_neighbor(9)batadv_purge_orig_node(9)batadv_purge_orig_ref(9)batadv_purge_orig(9)batadv_orig_dump(9)
ngl bestie, that's a lot of cross-references β but every single one is listed up there, so you can go read them all if you're feeling β¨academicβ¨ π
ok bye, go route something π
β this page lives in ./net/batman-adv, dated October 2026, and it's batadv_orig_to_router(9) all day every day πβ¨
π¦ 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