tailscale/net/connstats
Kristoffer Dalby e0d711c478 {net/connstats,wgengine/magicsock}: fix packet counting in connstats
connstats currently increments the packet counter whenever it is called
to store a length of data, however when udp batch sending was introduced
we pass the length for a series of packages, and it is only incremented
ones, making it count wrongly if we are on a platform supporting udp
batches.

Updates tailscale/corp#22075

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-10-14 14:17:56 +02:00
..
stats_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
stats.go {net/connstats,wgengine/magicsock}: fix packet counting in connstats 2024-10-14 14:17:56 +02:00