__batadv_forw_bcast_packet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __batadv_forw_bcast_packet (9) β€” the Kernel API Manual, bestie edition

okay so you found your way to __batadv_forw_bcast_packet and honestly? iconic choice. this is the double-underscore one, meaning it's the inner-workings version, and yes she ate. welcome to the Kernel API Manual πŸ¦‹


✨ NAME ✨

__batadv_forw_bcast_packet β€” forward and queue a broadcast packet. that's it, that's the vibe πŸ’Œ


🌸 SYNOPSIS 🌸

int __batadv_forw_bcast_packet (struct batadv_priv *bat_priv , struct sk_buff *skb , unsigned long delay , bool own_packet );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information πŸ‘‘ like the whole main character data structure
  • skb β€” broadcast packet to add. this is the little guy going out into the world 🫢
  • delay β€” number of jiffies to wait before sending. yes, jiffies, not seconds, don't come for me πŸ™ˆ
  • own_packet β€” true if it is a self-generated broadcast packet. like, did you make this or is it someone else's? πŸ’…

πŸ’– DESCRIPTION πŸ’–

Transmits a broadcast packet either immediately or, if a delay is given, after that. so: right now, or later, your call bestie ⭐

Furthermore, it queues additional retransmissions on wireless interfaces. lowkey doing the most so the packet actually arrives πŸ”₯

🚨 important caveat, no cap: this call clones the given skb, hence the caller needs to take into account that the data segment of the given skb might not be modifiable anymore. so don't go editing it afterwards, she's been copied, she's moved on 😭

⭐ RETURN ⭐

NETDEV_TX_OK on success and NETDEV_TX_BUSY on errors. slay on success, busy era on failure πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

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


and that's the page bestie, ily, go forward those broadcast packets responsibly πŸ§šπŸ’œ

./net/batman-adv Β· October 2026 Β· __batadv_forw_bcast_packet(9) β€” mwah, see u in the man page index 🌈

πŸ“¦ where this page comes from