batadv_send_...via_tt_4addr(9)
π 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 businessskbβ the payload to send π¦ your little data baby, off she goespacket_subtypeβ the unicast 4addr packet subtype to use π― you pick which flavor of unicast-4addr she's gonna bedst_hintβ can be used to override the destination contained in the skb π yeah, you can be shady and redirect her, no capvidβ 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 π
- Kernel file
./net/batman-adv/send.hπ batadv_send_skb_via_tt(9)β her cousin, also iconic π«Ά
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms