batadv_orig_to_router(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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