batadv_send_bcast_packet(9)
π 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βtrueif 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:
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_forw_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)
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
- 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