Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2026 14:16:17 +0000
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ff2f3a6cc1b7 - stable/15 - pf: fix pcounters array size
Message-ID:  <698de0b1.3e71f.6c7ff669@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=ff2f3a6cc1b7625c1f8c01f1b35bb33e4e31a1a1

commit ff2f3a6cc1b7625c1f8c01f1b35bb33e4e31a1a1
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-12-21 10:27:19 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-02-12 13:47:53 +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")
    
    (cherry picked from commit 622d7fa18d33cd8c4e1195888068fe1fe7c631a1)
---
 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 8edd5a5110a1..f8646b782fce 100644
--- a/sys/netpfil/pf/pf.h
+++ b/sys/netpfil/pf/pf.h
@@ -284,7 +284,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;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698de0b1.3e71f.6c7ff669>