The branch stable/15 has been updated by kp:

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

commit ff2f3a6cc1b7625c1f8c01f1b35bb33e4e31a1a1
Author:     Kristof Provost <[email protected]>
AuthorDate: 2025-12-21 10:27:19 +0000
Commit:     Kristof Provost <[email protected]>
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;

Reply via email to