batadv_dat_inc_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the u8 that 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 🌈


πŸ’œ friendly reminder: bat_priv is the bat priv with all the mesh interface information, and subtype is 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