batadv_send_...a_tt_generic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_send_skb_via_tt_generic β€” kernel API manual, bestie edition πŸ¦‹

okay so you're in the Kernel API Manual and the page is literally called batadv_send_...a_tt_generic(9) β€” yes the title got truncated, no that's not a you problem, it's just how it's printed. anyway. sit down, hydrate, let's talk about sending an skb via TT lookup πŸ’–


✨ NAME ✨

batadv_send_skb_via_tt_generic β€” send an skb via TT lookup. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

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

like, six args. she's high maintenance but she delivers. ✨


🫢 ARGUMENTS 🫢

  • bat_priv β€” the bat priv with all the mesh interface information. it's giving "walking folder of everything you need to know" energy. πŸ‘‘
  • skb β€” payload to send. the actual little package. the main character of the packet world fr fr. πŸ“¦
  • packet_type β€” the batman unicast packet type to use. you pick which flavor. 🌈
  • packet_subtype β€” the unicast 4addr packet subtype (only relevant for unicast 4addr packets). so like… if you're not doing 4addr, this is lowkey just vibing there, unused. πŸ™ˆ
  • dst_hint β€” can be used to override the destination contained in the skb. a little "actually, send it here" moment. πŸ’…
  • vid β€” the vid to be used to search the translation table. this is your search key bestie, don't lose it. πŸ”‘

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the whole plot πŸ“

It looks up the recipient node for the destination address in the ethernet header β€” via the translation table, obviously, that's literally in the name β€” and then it wraps the given skb into a batman-adv unicast or unicast-4addr header, depending on whether BATADV_UNICAST or BATADV_UNICAST_4ADDR was supplied as packet_type. then it sends this frame to the according destination node. slay. that's the whole thing. it ate and left no crumbs. πŸ”₯


⭐ RETURN ⭐

NET_XMIT_DROP in case of error, or NET_XMIT_SUCCESS otherwise. two outcomes, no in-between, no "it's complicated" 😭


🧚 SEE ALSO 🧚

Kernel file ./net/batman-adv/send.c β€” and the whole extended friend group:


ngl bestie, that's a lot of cross-references. but that's the neighborhood, and every single one of them is listed above. no cap, none skipped. 🫢

sign-off time πŸŽ€ β€” this page lives at ./net/batman-adv, it's dated October 2026, and it answers to the name batadv_send_...a_tt_generic(9) (yes, still truncated, still iconic). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from