aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2025-01-23 19:03:25 +0000
committerMark Johnston <markj@FreeBSD.org>2025-01-23 19:03:25 +0000
commitce52baebd3b37044e8a8e3f64ea4bc64d52c0a52 (patch)
tree53a1cba0ec91bb6ffef8be99c9ea71af84a773cc
parenta9ffa9b3d4d00230a472148c5df7a37c927150cf (diff)
icmp6: Fix ICMP6 message type counters
Previously this macro would always increment the first counter in the histogram array. PR: 279975 Fixes: 60d8dbbef075 ("netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters") Sponsored by: Klara, Inc.
-rw-r--r--sys/netinet/icmp6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index 9de8daaa3390..7845b682f3e4 100644
--- a/sys/netinet/icmp6.h
+++ b/sys/netinet/icmp6.h
@@ -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)
/*