batadv_send_...via_tt_4addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_send_skb_via_tt_4addr β€” the kernel API manual, but make it make sense πŸ’…

okay so bestie, this is batadv_send_skb_via_tt_4addr(9) from section 9 of the Kernel API Manual β€” like, the batman-adv girlies' very own corner of the kernel docs πŸ¦‹. She's a send function, she's a lookup function, she's literally both. Let's get into it ✨


✨ NAME ✨

batadv_send_skb_via_tt_4addr β€” send an skb via TT lookup πŸŽ€

🫢 SYNOPSIS 🫢

int batadv_send_skb_via_tt_4addr (struct batadv_priv *bat_priv , struct
sk_buff *skb , int packet_subtype , u8 *dst_hint , unsigned short vid );

🌸 ARGUMENTS 🌸

  • bat_priv β€” the bat priv with all the mesh interface information πŸ’– like, she contains multitudes, she holds the whole mesh's business
  • skb β€” the payload to send πŸ“¦ your little data baby, off she goes
  • packet_subtype β€” the unicast 4addr packet subtype to use 🎯 you pick which flavor of unicast-4addr she's gonna be
  • dst_hint β€” can be used to override the destination contained in the skb πŸ‘€ yeah, you can be shady and redirect her, no cap
  • vid β€” the vid to be used to search the translation table πŸ”Ž this is the key for the TT lookup, iykyk

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the vibe check: first you look up the recipient node for the destination address in the ethernet header β€” via the translation table, obviously πŸ’… β€” then you wrap the given skb into a batman-adv unicast-4addr header 🎁, and then you send this frame to the according destination node. that's it. that's the whole arc. main character energy from start to finish ⭐

πŸ”₯ RETURN πŸ”₯

NET_XMIT_DROP in case of error 😭 or NET_XMIT_SUCCESS otherwise ✨ slay

🌈 SEE ALSO 🌈


ngl bestie, if you're reading this and thinking "why is my packet not arriving" β€” check the return value first, fr fr πŸ’€

okay that's the whole page, 100% ate, no crumbs left 🧚. this lil gem lives in ./net/batman-adv and the docs are dated October 2026 β€” and yes, she's still filed as batadv_send_...via_tt_4addr(9), the truncated-name girlboss herself πŸ‘‘πŸ’œ bye bestie, go send some skbs πŸ’–

πŸ“¦ where this page comes from