batadv_forw_bcast_packet_if(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_forw_bcast_packet_if β€” the kernel API manual, but make it make sense 🫢

okay so bestie, welcome to batadv_forw_bcast_packet_if(9) πŸ’– this is a page from the Kernel API Manual and it's literally about forwarding and queueing a broadcast packet. yes, that's the whole vibe. let's get into it ✨


✨ NAME ✨

batadv_forw_bcast_packet_if β€” forward and queue a broadcast packet πŸŽ€

🌸 SYNOPSIS 🌸

int batadv_forw_bcast_packet_if (struct batadv_priv *bat_priv , struct
       sk_buff *skb , unsigned long delay , bool own_packet , struct
       batadv_hard_iface *if_in , struct batadv_hard_iface *if_out );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv with all the mesh interface information πŸ‘‘ like, it's holding all the intel, no cap.
  • skb β€” the broadcast packet you're adding πŸ“ this is the actual packet bestie.
  • delay β€” number of jiffies to wait before sending ⏳ yes, jiffies, that's the unit, don't come for me.
  • own_packet β€” true if it's a self-generated broadcast packet πŸ™ˆ like, a packet that came from you, not from someone else.
  • if_in β€” the interface where the packet was received on πŸ’… where it came in.
  • if_out β€” the outgoing interface to forward to πŸ”₯ where it's headed.

πŸ’œ DESCRIPTION πŸ’œ

so what it does: it transmits a broadcast packet on the specified interface, either immediately, or β€” if a delay is given β€” after that delay ⭐ and honestly? that's the whole move. but there's more.

Furthermore, it queues additional retransmissions if this interface is a wireless one 🧚 mmmhm, wireless interfaces get the extra retransmission treatment.

⚠️ okay this part matters, pay attention: this call clones the given skb. so the caller needs to take into account that the data segment of the original skb might not be modifiable anymore 😭 like, once it's cloned, hands off. don't go editing the original data segment and expect it to just work, because it won't. it's giving "read the docs before you touch it" energy πŸ’€

🌈 RETURN 🌈

  • NETDEV_TX_OK on success βœ… slay.
  • NETDEV_TX_BUSY on errors 😭 it's busy, it's going through something.

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./net/batman-adv/send.c β€” and bestie, here's the whole friend group, we're listing literally all of them:


that's the page, bestie, you ate that πŸ’… mwah 🫢 this little gem lives in ./net/batman-adv, dated October 2026, and it's officially batadv_forw_bcast_packet_if(9) β€” go forth and forward those broadcasts βœ¨πŸ‘‘

πŸ“¦ where this page comes from