batadv_mcast...w_mode_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 batadv_mcast_forw_mode_check(9) β€” the kernel API manual, bestie edition 🌸

okay so this is a page from the kernel API manual (man section 9, kernel internals territory πŸ‘‘), and it's all about batadv_mcast_forw_mode_check β€” a little function that does a vibe check on multicast frames. no cap, it's lowkey important πŸ¦‹


✨ NAME ✨

batadv_mcast_forw_mode_check β€” checks whether there's any optimized-forwarding potential, i.e. whether this frame could slay harder than plain flooding πŸ’…


✨ SYNOPSIS ✨

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

she takes four args and returns an int, periodt.


✨ ARGUMENTS ✨

  • bat_priv β€” the bat priv, aka the struct holding all the mesh interface info. it's giving main character energy because everything else hangs off of it πŸŽ€
  • skb β€” the multicast frame we're checking. the actual vibe in question 🌈
  • is_unsnoopable β€” an out-param: it stores whether the destination is snoopable πŸ‘€
  • is_routable β€” another out-param: it stores whether the destination is routable πŸ›£οΈ

✨ DESCRIPTION ✨

so what does she actually do? she checks whether the given multicast ethernet frame has the potential to be forwarded with a mode that's more optimal than classic flooding πŸ”₯ that's the whole assignment. no extra lore, that's it.

tl;dr: is this frame special enough to forward smarter than just yeeting it everywhere? she finds out πŸ’–

✨ RETURN ✨

if so, then 0 β€” we love a success story 🫢

otherwise -EINVAL is, or -ENOMEM if we are out of memory 😭 (yes, that's exactly how the original words it β€” copying the phrasing verbatim because the facts do not change, only the vibe does)


✨ SEE ALSO ✨

the kernel file lives at ./net/batman-adv/multicast.c, and here's the whole friend group β€” literally every single one, no skipping, we don't do that here 🧚


and that's the whole page, bestie πŸ’œ this cutie comes from the source tree at ./net/batman-adv and the date on the tin is October 2026 β€” bookmark it, cite it, iykyk β­πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from