batadv_mcast_forw_send(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ batadv_mcast_forw_send(9) β€” the Kernel API Manual, bestie edition

okay so we're in the batadv_mcast_forw_send page of the Kernel API Manual and honestly? this one's a little baddie. it takes a multicast packet and makes sure the right mesh besties actually get it. let's get into it πŸ’…


✨ NAME ✨

batadv_mcast_forw_send β€” literally sends a packet to any detected multicast recipient πŸŽ€


🌸 SYNOPSIS 🌸

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

like, that's the whole signature, no notes πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bat_priv β€” the bat priv, aka the thing holding all the mesh interface information 🫢
  • skb β€” the multicast packet we're transmitting, the main character fr
  • vid β€” the vlan identifier, iykyk
  • is_routable β€” stores whether the destination is routable πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so what it does: it sends copies of a frame with a multicast destination to any node that signaled interest in it. and "signaled interest" means either via the translation table or via the according want-all flags. for each such destination node, a transmission is performed via a batman-adv unicast packet. cute, right? 🧚

⚠️ heads up bestie: the given skb is consumed/freed. like, it's gone. do not touch it after. no cap πŸ’€

🌈 RETURN 🌈

  • NET_XMIT_DROP β€” when memory allocation fails, or when the protocol family is neither IPv4 nor IPv6 😭
  • NET_XMIT_SUCCESS β€” otherwise, slay ✨

⭐ SEE ALSO ⭐

the whole group chat, in Kernel file ./net/batman-adv/multicast.c:


and that's the page!! this one came out of ./net/batman-adv in October 2026, part of the Kernel API Manual, and it's filed under batadv_mcast_forw_send(9) β€” mwah, go read the whole multicast.c bestie πŸ’œ

πŸ“¦ where this page comes from