batadv_transtable_search(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_transtable_search(9) β€” Kernel API Manual, but make it make sense

okay bestie, sit down, we're learning kernel API today. this one lives in the Kernel API Manual and it's literally the glow-up your mesh network needs. it's called batadv_transtable_search, and honestly? it's giving matchmaker energy. πŸ”₯


✨ NAME ✨

batadv_transtable_search β€” get the mesh destination for a given client 🎯

πŸ¦‹ SYNOPSIS πŸ¦‹

struct batadv_orig_node * batadv_transtable_search (struct batadv_priv
*bat_priv , const u8 *src , const u8 *addr , unsigned short vid );

like yes, it returns a struct batadv_orig_node * β€” a whole pointer, not a little guy. πŸ’…

🌸 ARGUMENTS 🌸

four args, all of them main-character in their own way:

  • bat_priv β€” the bat priv with all the mesh interface information. it's the one holding the group chat, i.e. all the deets about your mesh interface 🫢
  • src β€” mac address of the source client. who's doing the talking πŸ’¬
  • addr β€” mac address of the destination client. who's getting talked to πŸ“¬
  • vid β€” VLAN identifier. gotta know which vlan lane we're in, no cap πŸ›£οΈ

⭐ RETURN ⭐

it hands you a pointer to the originator that was selected as destination in the mesh for contacting the client addr, and NULL otherwise. periodt. 🫑

and like, the slay detail: if there are multiple originators serving the same client, the function returns the best one β€” best in terms of metric towards the destination node πŸ‘‘πŸ”₯. we love a function that picks the icon of the group.

πŸ’€ DESCRIPTION πŸ’€

one thing, and it's important, so listen up:

if the two clients are AP isolated, the function returns NULL. that's it, that's the vibe check, and they fail it πŸ™ˆ

🧚 SEE ALSO 🧚

it's a whole friend group, fr fr. all of these live in the kernel file ./net/batman-adv/translation-table.c β€” here's everyone invited to the party πŸ’–:

like… that's a lot of reading but they're all lowkey iconic in their own right, iykyk πŸ“šβœ¨


and that's the whole page bestie, you ate that πŸ’…

this little love letter came to you from ./net/batman-adv, dated October 2026 β€” see you in the next manpage, mwah πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from