icmp6: Fix ICMP6 message type counters

Previously this macro would always increment the first counter in the
histogram array.

PR:		279975
Fixes:		60d8dbbef0 ("netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters")
Sponsored by:	Klara, Inc.
This commit is contained in:
Mark Johnston 2025-01-23 19:03:25 +00:00
parent a9ffa9b3d4
commit ce52baebd3

View file

@ -652,7 +652,7 @@ VNET_PCPUSTAT_DECLARE(struct icmp6stat, icmp6stat);
#define ICMP6STAT_INC2(name, type) \
do { \
MIB_SDT_PROBE2(icmp6, count, name, 1, type); \
VNET_PCPUSTAT_ADD(struct icmp6stat, icmp6stat, name, 1); \
VNET_PCPUSTAT_ADD(struct icmp6stat, icmp6stat, name[type], 1); \
} while (0)
/*