batadv_mcast_forw_want_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_mcast_forw_want_all(9) πŸ’…

okay so bestie, this is a page from the Kernel API Manual β€” yes, the big one β€” and it's all about batadv_mcast_forw_want_all. it's a batman-adv thing. buckle up πŸ¦‹


✨ NAME ✨

batadv_mcast_forw_want_all β€” forward packet to nodes in a want-all list πŸŽ€


🌸 SYNOPSIS 🌸

int batadv_mcast_forw_want_all (struct batadv_priv *bat_priv , struct
       sk_buff *skb , unsigned short vid );

like, that's the whole signature. three args. she's compact. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv with all the mesh interface information 🫢 literally the whole vibe of your mesh interface lives in here
  • skb β€” the multicast packet to transmit πŸ“¦ the actual lil package that needs to get sent out
  • vid β€” the vlan identifier 🏷️ yes, that vlan

πŸ’– DESCRIPTION πŸ’–

so this function sends copies of a frame with a multicast destination to any node that has the BATADV_MCAST_WANT_ALL_IPV4 flag set or the BATADV_MCAST_WANT_ALL_IPV6 flag set. any node. all of them. it's giving "you get a packet, you get a packet" energy πŸ‘‘

and the way it does it? for each one of those destination nodes, a transmission is performed via a batman-adv unicast packet. the way that it's unicast on the wire but multicast in spirit… iconic 😭πŸ”₯


⭐ RETURN ⭐

  • NET_XMIT_DROP β€” if memory allocation fails 😭 or if the protocol family is neither IPv4 nor IPv6 (like… pick a lane bestie πŸ’€)
  • NET_XMIT_SUCCESS β€” otherwise 🌈 slay

πŸ’œ SEE ALSO πŸ’œ

the kernel file ./net/batman-adv/multicast.c, plus honestly the entire multicast friend group 🫢 here's the full roster, no cap, every single one:


πŸ’€ real talk: iykyk, but also β€” memory allocation failure returns NET_XMIT_DROP, and so does a protocol family that isn't IPv4 or IPv6. no guessing, that's straight from the source.

okay bye bestie, go read your packets πŸ“šπŸ’…

sign-off check πŸŽ€ this one came from ./net/batman-adv, dated October 2026, and it's page batadv_mcast_forw_want_all(9) of the Kernel API Manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from