batadv_mcast_is_report_ipv6(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_mcast_is_report_ipv6(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're in kernel land today, and no, it's not scary, i promise 🫢. this one's a lil function from the batman-adv family and it's honestly so straightforward once you know what it's doing.


🌸 NAME 🌸

batadv_mcast_is_report_ipv6 β€” literally just checking for MLD reports πŸ‘€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_mcast_is_report_ipv6 (struct sk_buff *skb );

that's it. one frame in, one bool out. clean, minimal, iconic πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the ethernet frame that's headed for the mesh 🧚 this is the thing you're asking about, so hand it over.

πŸ’œ DESCRIPTION πŸ’œ

⚠️ bestie, read this one first, it's important: this function may reallocate the skb data buffer via ipv6_mc_check_mld/... β€” so any pointer into the skb data (like one you got from skb->data or eth_hdr) that you grabbed before this call has to be considered invalid afterwards. invalid! gone! expired! 😭 you have to reacquire it. don't be out here using a stale pointer, that is not the vibe.

and then the actual job, which is honestly kinda cute: it checks whether the frame you passed in is a valid MLD report 🌈


⭐ RETURN ⭐

  • if it is πŸ‘‰ true ✨
  • otherwise πŸ‘‰ false πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file is ./net/batman-adv/multicast.c, and bestie… the friend group here is huge. like, this function knows everyone. scroll responsibly:


that's the whole page, bestie, you ate that πŸ“πŸ’…

sign-off time πŸŽ€ β€” this lil beauty lives in ./net/batman-adv, dated October 2026, and the page itself is batadv_mcast_is_report_ipv6(9). go forth, reacquire your pointers, and slay βœ¨πŸ‘‘

πŸ“¦ where this page comes from