batadv_check_claim_group(9)
π 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:
- Kernel file
./net/batman-adv/bridge_loop_avoidance.cπ batadv_choose_claim(9)batadv_choose_backbone_gw(9)batadv_compare_backbone_gw(9)batadv_compare_claim(9)batadv_backbone_gw_release(9)batadv_backbone_gw_put(9)batadv_claim_release(9)batadv_claim_put(9)batadv_claim_hash_find(9)batadv_backbone_hash_find(9)batadv_bla_del_backbone_claims(9)batadv_bla_send_claim(9)batadv_bla_loopdetect_report(9)batadv_bla_get_backbone_gw(9)batadv_bla_update_own_backbone_gw(9)batadv_bla_answer_request(9)batadv_bla_send_request(9)batadv_bla_send_announce(9)batadv_bla_add_claim(9)batadv_bla_claim_get_backbone_gw(9)batadv_bla_del_claim(9)batadv_handle_announce(9)batadv_handle_request(9)batadv_handle_unclaim(9)batadv_handle_claim(9)batadv_bla_process_claim(9)batadv_bla_purge_backbone_gw(9)batadv_bla_purge_claims(9)batadv_bla_update_orig_address(9)batadv_bla_send_loopdetect(9)batadv_bla_status_update(9)batadv_bla_periodic_work(9)batadv_bla_init(9)batadv_bla_check_duplist(9)batadv_bla_check_ucast_duplist(9)batadv_bla_check_bcast_duplist(9)batadv_bla_is_backbone_gw_orig(9)batadv_bla_is_backbone_gw(9)batadv_bla_free(9)batadv_bla_loopdetect_check(9)batadv_bla_rx(9)batadv_bla_tx(9)batadv_bla_claim_dump_entry(9)batadv_bla_claim_dump_bucket(9)batadv_bla_claim_dump(9)batadv_bla_backbone_dump_entry(9)batadv_bla_backbone_dump_bucket(9)batadv_bla_backbone_dump(9)batadv_bla_check_claim(9)
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 underbatadv_check_claim_group(9). mwah, that's the sign-off bestie πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms