batadv_dat_inc_counter(9)
β¨ batadv_dat_inc_counter(9) β¨
okay so you're in the Kernel API Manual bestie, and this little function is literally the counter-keeping icon of the batman-adv world β batadv_dat_inc_counter. no cap, its whole job is incrementing the correct DAT packet counter π
πΈ NAME πΈ
batadv_dat_inc_counter β increment the correct DAT packet counter
like, the correct one. that's the whole vibe check. π
π¦ SYNOPSIS π¦
void batadv_dat_inc_counter (struct batadv_priv *bat_priv , u8 subtype
);
yep that's it. returns void β it gives you nothing back except the warm feeling of a job well done π«Ά
π ARGUMENTS π
bat_privβ the bat priv with all the mesh interface information. it's giving main character energy: every bit of mesh interface info lives in here and the function needs it to do its thing β¨subtypeβ the 4addr subtype of the packet to be counted. this is theu8that tells the function which flavour of packet we're dealing with so the right counter gets the little bump π₯
π DESCRIPTION π
Updates the ethtool statistics for the received packet if it is a DAT subtype.
that's the entire assignment, and honestly? it ate. if the packet that came in is a DAT subtype, the ethtool stats get updated. if it's notβ¦ nothing happens, and honestly same energy π
π SEE ALSO π
- Kernel file
./net/batman-adv/distributed-arp-table.hβ the header, iykyk π§ batadv_dat_init_orig_node_addr(9)batadv_dat_init_own_addr(9)
π friendly reminder:bat_privis the bat priv with all the mesh interface information, andsubtypeis the 4addr subtype of the packet to be counted. keep those straight and you're golden, bestie.
that's the whole page, periodt π β straight from ./net/batman-adv, dated October 2026, and yes this is still batadv_dat_inc_counter(9) the whole way through. slay π
β
π¦ 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