__batadv_forw_bcast_packet(9)
π
__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 structureskbβ 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βtrueif 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 givenskb, hence the caller needs to take into account that the data segment of the givenskbmight 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:
batadv_send_skb_packet(9)batadv_send_broadcast_skb(9)batadv_send_unicast_skb(9)batadv_send_skb_to_orig(9)batadv_send_skb_push_fill_unicast(9)batadv_send_skb_prepare_unicast(9)batadv_send_skb_prepare_unicast_4addr(9)batadv_send_skb_unicast(9)batadv_send_skb_via_tt_generic(9)batadv_send_skb_via_gw(9)batadv_forw_packet_free(9)batadv_forw_packet_alloc(9)batadv_forw_packet_was_stolen(9)batadv_forw_packet_steal(9)batadv_forw_packet_list_steal(9)batadv_forw_packet_list_free(9)batadv_forw_packet_queue(9)batadv_forw_packet_bcast_queue(9)batadv_forw_packet_ogmv1_queue(9)batadv_forw_bcast_packet_to_list(9)batadv_forw_bcast_packet_if(9)batadv_send_no_broadcast(9)batadv_forw_bcast_packet(9)batadv_send_bcast_packet(9)batadv_forw_packet_bcasts_left(9)batadv_forw_packet_bcasts_dec(9)batadv_forw_packet_is_rebroadcast(9)batadv_send_outstanding_bcast_packet(9)batadv_purge_outstanding_packets(9)
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
- 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