git: ce52baebd3b3 - main - icmp6: Fix ICMP6 message type counters
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Jan 2025 19:04:23 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ce52baebd3b37044e8a8e3f64ea4bc64d52c0a52 commit ce52baebd3b37044e8a8e3f64ea4bc64d52c0a52 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-01-23 19:03:25 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-01-23 19:03:25 +0000 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. --- sys/netinet/icmp6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /*