batadv_tt_local_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_tt_local_add(9)

okay so bestie, we're in the Kernel API Manual today and this is the little function that gets a brand-new client into the local translation table β€” or, if that client is already chilling in there, just updates them. lowkey the glue of the whole TT situation. 🫢


✨ NAME ✨

batadv_tt_local_add β€” add a new client to the local table or update an existing client πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_tt_local_add (struct net_device *mesh_iface , const u8 *addr , unsigned short vid , int ifindex , u32 mark );

🌸 ARGUMENTS 🌸

  • mesh_iface β€” the netdev struct of the mesh interface πŸ’–
  • addr β€” the mac address of the client you're adding ✨
  • vid β€” the VLAN identifier πŸ‘‘
  • ifindex β€” the index of the interface the client is connected to (super useful for identifying wireless clients, iykyk) πŸ¦‹
  • mark β€” the value sitting in the skb->mark field of the received packet (if there is one) πŸ’…

⭐ RETURN ⭐

true if the client was successfully added, false otherwise. That's it, that's the vibe check. 🫢


🌈 SEE ALSO 🌈

Kernel file ./net/batman-adv/translation-table.c β€” and honestly the whole extended fam lives there too, so here's every single one of them, no cap: πŸ’œ


that's the whole roster, bestie, every single one accounted for πŸ’…βœ¨

so yeah β€” this page ships out of ./net/batman-adv and it's dated October 2026 🌸 go forth and add those clients, you've got this πŸ¦‹πŸ’–πŸ‘‘

πŸ“¦ where this page comes from