batadv_send_bcast_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_send_bcast_packet(9) ✨

okay bestie, welcome to the Kernel API Manual β€” this one's a lil function from batman-adv and she's giving broadcast energy πŸ”₯ lowkey the whole point is: send the packet, queue the packet, keep the mesh fed. periodt.


🌸 NAME 🌸

batadv_send_bcast_packet β€” send and queue a broadcast packet πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void batadv_send_bcast_packet (struct batadv_priv *bat_priv , struct
sk_buff *skb , unsigned long delay , bool own_packet );

that's it, that's the whole signature, no cap ✨


πŸ’– ARGUMENTS πŸ’–

  • bat_priv β€” the bat priv, aka the struct holding all the mesh interface info. she knows everything, she's the main character of this call πŸ‘‘
  • skb β€” the broadcast packet you're adding. this is the star of the show, handle her with care 🫢
  • delay β€” how many jiffies to wait before actually sending. yes, jiffies, that's the unit, don't come for me 😭
  • own_packet β€” true if this is a self-generated broadcast packet, like you made it yourself, homegrown, artisanal πŸ’…

✨ DESCRIPTION ✨

so basically: this bad boy transmits a broadcast packet β€” either immediately, or, if you gave it a delay, after that delay has passed. ⏳

and that's not all, because she's an overachiever: it also queues up additional retransmissions on wireless interfaces 🧚 so the vibes get repeated, as they should.

⚠️ BIG one, don't skip this: it consumes the provided skb. like, it owns it now. it's eaten. do not touch it after. this is not a drill, bestie, that skb is GONE πŸ’€

🌈 SEE ALSO 🌈

the kernel file ./net/batman-adv/send.c β€” plus a whole friend group of functions, and yes i'm listing every single one because they all matter, iykyk:

go read them, she'd want you to πŸ“šπŸ’œ


and that's the whole page bestie!! πŸŽ€ this little beauty lives in ./net/batman-adv and this version is dated October 2026 β€” shoutout to the batadv_send_bcast_packet(9) girlies, see you in the next manpage, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from