batadv_mcast...tvlv_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_mcast...tvlv_handler(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual β€” the batadv_mcast...tvlv_handler(9) one β€” and it's genuinely one of those little functions that does a LOT of heavy lifting, so let's get into it 🫢


✨ NAME ✨

batadv_mcast_forw_tracker_tvlv_handler β€” literally handles an mcast tracker tvlv. that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

int batadv_mcast_forw_tracker_tvlv_handler (struct batadv_priv *bat_priv
, struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • bat_priv β€” the bat priv, aka the glow-up container holding all the mesh interface information πŸ‘‘
  • skb β€” the received batman-adv multicast packet, freshly arrived, main character energy ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it actually does: it parses the tracker TVLV of an incoming batman-adv multicast packet, and then forwards the packet exactly as that TVLV says to. no cap, it just reads the vibe check and sends it on ✨

now the important part β€” the contract with whoever's calling this (that's you, bestie, so listen up πŸ™ˆ):

  • the caller needs to set the skb network header to the start of the multicast tracker TVLV β€” and that's excluding the generic TVLV header, k? πŸ’€
  • the caller also needs to set the skb transport header to the next byte after this multicast tracker TVLV 🎯
  • and the caller needs to free the skb. yes, that's on you. don't leave it hanging 😭

πŸ”₯ RETURN πŸ”₯

so it returns NET_RX_SUCCESS or NET_RX_DROP on success, or a negative error code on failure πŸ’œ

and the tea on the two success-ish ones:

  • NET_RX_SUCCESS β€” the received packet is supposed to be decapsulated and forwarded to the own mesh interface πŸ₯³
  • NET_RX_DROP β€” otherwise. it's getting dropped, bestie, that's just how it is πŸ’€

🌈 SEE ALSO 🌈

go look at the actual kernel file, it's right here:

./net/batman-adv/multicast_forw.c

and then the whole squad of sibling functions, all of them, every single one, because they're all iconic in their own way πŸ‘‘:

ngl that's a long list but every one of them is doing something, so go read them, iykyk 🧚

mwah πŸ’‹ that's the page β€” brought to you by the fine folks at ./net/batman-adv, dated October 2026, and yes this whole thing is batadv_mcast...tvlv_handler(9) and it ate πŸ’…βœ¨

πŸ“¦ where this page comes from