batadv_orig_...irect_router(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_orig_to_direct_router β€” kernel API manual, bestie edition πŸ’–

okay so real talk, this is a page from the Kernel API Manual and it's about one tiny little function in batman-adv land. it's short, it's sweet, and honestly it's giving "small function, big job" energy. let's get into it ✨


πŸ¦‹ NAME πŸ¦‹

batadv_orig_to_direct_router β€” literally just: get the direct next hop neighbor for an orig address. that's the whole vibe. no cap. πŸŽ€


🌸 SYNOPSIS 🌸

struct batadv_neigh_node * batadv_orig_to_direct_router (struct
batadv_priv *bat_priv , u8 *orig_addr , struct batadv_hard_iface
*if_outgoing );

so you hand it three things and it hands you back a struct batadv_neigh_node *. cute little exchange, iykyk πŸ’…


✨ ARGUMENTS ✨

  • bat_priv β€” the bat priv, aka the big bag of mesh interface information. it knows everything, it's the main character fr πŸ‘‘
  • orig_addr β€” the originator MAC address you're searching for the best next hop router for. it's a u8 *, it's giving pointer energy πŸ¦‹
  • if_outgoing β€” the interface where the OGM should be sent to. like, which door are we sending the packet out of πŸšͺ

πŸ’œ RETURN πŸ’œ

you get back a neighbor node β€” the best router towards the given originator address, periodt.

heads up bestie: bonding candidates are ignored πŸ™ˆ like they literally do not get considered, so don't go looking for them in the result. no cap, that's a real caveat, keep it in mind.

🌈 SEE ALSO 🌈

okay this list is long and honestly it ate. it's all from the kernel file ./net/batman-adv/bat_iv_ogm.c, so bring snacks, this is a whole tour πŸ“

like i said. a lot. and every single one of them is here, i didn't skip a single one, you're welcome bestie 🫢


🧚 sign-off 🧚

this page came out of ./net/batman-adv in October 2026, under the Kernel API Manual, and yes it's still the same batadv_orig_...irect_router(9) energy we started with πŸ’« go read your kernel source, it's iconic, and remember: bonding candidates are ignored. slay. πŸ’…βœ¨

πŸ“¦ where this page comes from