batadv_send_skb_via_gw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_send_skb_via_gw(9) β€” like, the Kernel API Manual era πŸŽ€

okay so bestie, welcome to the batadv_send_skb_via_gw glow-up page ✨ this is the Kernel API Manual entry, and honestly? it's giving "small function, big responsibilities" energy πŸ‘‘


🌸 NAME 🌸

batadv_send_skb_via_gw β€” send an skb via gateway lookup πŸ’Œ


✨ SYNOPSIS ✨

int batadv_send_skb_via_gw (struct batadv_priv *bat_priv , struct
       sk_buff *skb , unsigned short vid );

literally that's the whole signature, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information, like the main character carrying every single detail of the mesh interface around with her πŸ’Ό
  • skb β€” payload to send, the lil package itself πŸ“¦
  • vid β€” the vid to be used to search the translation table, iykyk πŸ”

πŸ’– DESCRIPTION πŸ’–

Look up the currently selected gateway. πŸ‘€

Wrap the given skb into a batman-adv unicast header and send this frame to this gateway node. It's basically gift-wrapping your packet and handing it to the gateway bestie πŸŽβž‘οΈπŸ‘‘ periodt.


🌈 RETURN 🌈

  • NET_XMIT_DROP in case of error 😭
  • NET_XMIT_SUCCESS otherwise πŸŽ‰βœ¨
fr fr, those are the only two vibes you're getting back πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/batman-adv/send.c β€” and honestly the whole friend group is here, so let's go πŸ’…


that's the whole page, bestie, stay hydrated and keep your skbs safe πŸ’œ πŸ§šβ€β™€οΈ

signing off from ./net/batman-adv β€” dated October 2026 β€” mwah πŸ’‹ πŸŽ€

πŸ“¦ where this page comes from