batadv_check_claim_group(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_check_claim_group β€” the kernel API manual moment

okay so bestie, welcome to batadv_check_claim_group(9), the lil function that checks for claim group membership. yes it's a real thing, yes it's in the kernel, and yes we're gonna understand it together, no cap 🫢


✨ NAME ✨

batadv_check_claim_group β€” check for claim group membership 🌸


✨ SYNOPSIS ✨

int batadv_check_claim_group (struct batadv_priv *bat_priv , struct
batadv_hard_iface *primary_if , u8 *hw_src , u8 *hw_dst , struct ethhdr
*ethhdr );

literally that's the whole signature, copy it exactly, don't come for me πŸ’…


✨ ARGUMENTS ✨

  • bat_priv β€” the bat priv with all the mesh interface information πŸ‘‘ like, the whole vibe of the mesh lives in here.
  • primary_if β€” the primary interface of this batman interface πŸ¦‹
  • hw_src β€” the Hardware source in the ARP Header πŸ“
  • hw_dst β€” the Hardware destination in the ARP Header 🎯
  • ethhdr β€” pointer to the Ethernet header of the claim frame πŸ“¦

✨ DESCRIPTION ✨

so what does it actually do? it checks if it's a claim packet, and if it's on the same group. that's the assignment, and it ate πŸ”₯

and bestie, it gets better: this function also applies the group ID of the sender if it is in the same mesh. periodt. πŸ’«


✨ RETURN ✨

the return values are giving "pick a number, any number" but make it meaningful 🌈

  • 2 β€” if it is a claim packet and on the same group βœ…
  • 1 β€” if is a claim packet from another group πŸ‘€ (yes that's the original wording bestie, i don't make the rules)
  • 0 β€” if it is not a claim packet πŸ™ˆ

✨ SEE ALSO ✨

the friend group is HUGE, and honestly? iconic. every single one of these:

like i said. friend group. enormous. go read them all, iykyk πŸ“šπŸ’œ


ngl this whole page came from ./net/batman-adv, dated October 2026, and it's filed under batadv_check_claim_group(9). mwah, that's the sign-off bestie πŸ’‹βœ¨πŸŽ€
πŸ“¦ where this page comes from