Date: Sun, 21 Dec 2025 17:33:36 +0000 From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 622d7fa18d33 - main - pf: fix pcounters array size Message-ID: <69482f70.23ba3.495318e2@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=622d7fa18d33cd8c4e1195888068fe1fe7c631a1 commit 622d7fa18d33cd8c4e1195888068fe1fe7c631a1 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-12-21 10:27:19 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-12-21 17:33:06 +0000 pf: fix pcounters array size It's a 2 * 2 * 2, not 2 * 2 * 3. We only use PF_DROP and PF_PASS, so two rows suffices. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf.h b/sys/netpfil/pf/pf.h index bcd66fd17d5d..333e5b53b0a8 100644 --- a/sys/netpfil/pf/pf.h +++ b/sys/netpfil/pf/pf.h @@ -290,7 +290,7 @@ struct pf_status { uint64_t lcounters[LCNT_MAX]; uint64_t fcounters[FCNT_MAX]; uint64_t scounters[SCNT_MAX]; - uint64_t pcounters[2][2][3]; + uint64_t pcounters[2][2][2]; uint64_t bcounters[2][2]; uint32_t running; uint32_t states;help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69482f70.23ba3.495318e2>
