mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 07:42:26 -04:00
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:
parent
a9ffa9b3d4
commit
ce52baebd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue