batadv_mcas...e_check_ipv6(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ batadv_mcast_forw_mode_check_ipv6(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, we're in the Kernel API Manual today and the star of the show is batadv_mcast_forw_mode_check_ipv6. no cap, it's giving "tiny function, big job" energy ✨


πŸ’œ NAME πŸ’œ

batadv_mcast_forw_mode_check_ipv6 β€” check for optimized forwarding potential πŸŽ€

like, it literally just peeks at a packet and goes "hmm, could this be forwarded smarter?" πŸ”₯


🌸 SYNOPSIS 🌸

int batadv_mcast_forw_mode_check_ipv6 (struct batadv_priv *bat_priv ,
struct sk_buff *skb , bool *is_unsnoopable , int *is_routable );

the way that signature just sits there with four arguments... main character energy fr fr πŸ’…


🌈 ARGUMENTS 🌈

  • bat_priv β€” the bat priv with all the mesh interface information 🫢 like, the whole mesh's vibe lives in here
  • skb β€” the IPv6 packet to check πŸ“¦ the one we're ✨judging✨
  • is_unsnoopable β€” stores whether the destination is snoopable πŸ‘€ yes, it gets written to, that's the whole point
  • is_routable β€” stores whether the destination is routable 🧭 likewise, output goes here
ngl, those last two are out-params, so bring your pointers bestie πŸ™ˆ

⭐ DESCRIPTION ⭐

Checks whether the given IPv6 packet has the potential to be forwarded with a mode more optimal than classic flooding 🌊➑️🎯

that's it, that's the job. it's a vibe check for your packet β€” is classic flooding the move, or can we do better? iykyk πŸ’«


πŸ’€ RETURN πŸ’€

If so then 0 πŸŽ‰ (slay). Otherwise -EINVAL 🀨 or -ENOMEM if we are out of memory 😭 (literally the worst).


🧚 SEE ALSO 🧚

Kernel file ./net/batman-adv/multicast.c and honestly the whole multicast friend group πŸ‘‘:

like, that's a lot of friends and we stan every single one πŸ“


okay that's the whole page bestie, no gatekeeping πŸ’– this one came out of ./net/batman-adv and it's dated October 2026 β€” and yeah, batadv_mcas...e_check_ipv6(9) is the exact same function you just read about, the header and footer are just built different πŸ’… periodt πŸŽ€

πŸ“¦ where this page comes from