batadv_check...ement_packet(9)
π batadv_check_management_packet(9) β a Kernel API Manual moment
okay so bestie, welcome to the batadv_check_management_packet(9) page, straight out of the Kernel API Manual β¨ this one's short but she is important, so pay attention π«Ά
πΈ NAME πΈ
batadv_check_management_packet β checks the preconditions for management packets, no cap π
she's the bouncer at the club door, vibe-checking your management packets before they get in π
β¨ SYNOPSIS β¨
bool batadv_check_management_packet (struct sk_buff *skb , struct
batadv_hard_iface *hard_iface , int header_len );
like, she returns a bool, takes three things, and that's the whole fit π₯
π¦ ARGUMENTS π¦
skbβ the incoming packet buffer, aka the actual packet bestie is carrying πhard_ifaceβ the incoming hard interface, the physical-ish doorway it came through πͺheader_lenβ the minimal header length of this packet type, like the minimum height requirement on the ride, iconic π
π DESCRIPTION π
β οΈ Warning: this function may reallocate theskbdata buffer viaskb_cow/skb_linearize/β¦ so like, heads up, bestie π
Any pointer into the skb data β for example one you got from skb->data or eth_hdr β that existed before this call must be considered invalid afterwards and has to be reacquired. not me gaslighting your pointers but fr fr, they're toast after this call π
reacquire them, don't be weird about it π
β RETURN β
Returns true when the management preconditions are met, and false otherwise π simple as that, she ate π
π§ SEE ALSO π§
Kernel file ./net/batman-adv/routing.c plus the whole friend group, iykyk:
_batadv_update_route(9)batadv_update_route(9)batadv_window_protected(9)batadv_skb_decrement_ttl(9)batadv_recv_my_icmp_packet(9)batadv_recv_icmp_ttl_exceeded(9)batadv_recv_icmp_packet(9)batadv_check_unicast_packet(9)batadv_last_bonding_get(9)batadv_last_bonding_replace(9)batadv_find_router(9)batadv_route_unicast_packet(9)batadv_reroute_unicast_packet(9)batadv_check_unicast_ttvn(9)batadv_recv_unhandled_unicast_packet(9)batadv_recv_unicast_packet(9)batadv_recv_unicast_tvlv(9)batadv_recv_frag_packet(9)batadv_recv_bcast_packet(9)batadv_recv_mcast_packet(9)
and that's the whole page, bestie π this lil' cutie lives in ./net/batman-adv, dated October 2026, and she's filed under batadv_check...ement_packet(9) β mwah, go check your preconditions πβ¨
π¦ 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