batadv_tt_global_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_tt_global_add(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for batadv_tt_global_add(9) β€” yes that's the whole name, it's a whole vibe, we love a long descriptive function name in this house 🫢


✨ NAME ✨

batadv_tt_global_add β€” add a new TT global entry or update an existing one πŸ’…


🌸 SYNOPSIS 🌸

bool batadv_tt_global_add (struct batadv_priv *bat_priv , struct
batadv_orig_node *orig_node , const unsigned char *tt_addr , unsigned
short vid , u16 flags , u8 ttvn );

like literally that's the whole signature, no cap πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information (it's giving main character energy, it holds everything)
  • orig_node β€” the originator announcing the client πŸ‘‘
  • tt_addr β€” the mac address of the non-mesh client πŸ“
  • vid β€” VLAN identifier
  • flags β€” TT flags that have to be set for this non-mesh client
  • ttvn β€” the tt version number ever announcing this non-mesh client

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” this function adds a new TT global entry for the given originator.

if the entry already exists? it adds a new reference to the given originator (and yes, a global entry can have references to multiple originators β€” it's poly, it's fine 😌) and adjusts the flags attribute to reflect the function argument. slay.

also, if a TT local entry exists for this non-mesh client, it removes it. bye bestie πŸ‘‹

⚠️ important caveat, don't skip this: The caller must hold the orig_node refcount. fr fr, hold it before you call this, no exceptions.

⭐ RETURN ⭐

  • true β€” if the new entry has been added πŸŽ‰
  • false β€” otherwise 😭

🌈 SEE ALSO 🌈

Kernel file ./net/batman-adv/translation-table.c and, honestly, the entire extended friend group:


and that's the whole page, bestie πŸ’– this little readme of a manpage lives in ./net/batman-adv and it's dated October 2026 β€” go forth and add those TT global entries, you've got this 🧚✨

πŸ“¦ where this page comes from