[Bug 291763] pfctl: loginterface packet counts for pass/block swapped; byte counts all 0
[email protected] Thu, 19 Feb 2026 16:01:23 +0000
| Newsgroups | gmane.os.freebsd.devel.pf4freebsd |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291763 --- Comment #17 from [email protected] --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=4d0186cd12a79269d5ddb607eff8deebe4667f67 commit 4d0186cd12a79269d5ddb607eff8deebe4667f67 Author: Eric A. Borisch <[email protected]> AuthorDate: 2026-02-12 00:26:26 +0000 Commit: Kristof Provost <[email protected]> CommitDate: 2026-02-19 16:00:19 +0000 libpfctl: Sort order of snl attribute parser snl atttribute parsers must be sorted by type, so PF_GS_BCOUNTERS (16) must follow PF_GF_PCOUNTERS (15). Fix ordering and add a call to SNL_VERIFY_PARSERS. Without this fix, byte counters reported by 'pfctl -s info' with a loginterface are always zero. PR: 291763 MFC after: 1 week Reviewed by: kp Signed-off-by: [email protected] (cherry picked from commit 363b57d579bafa8a52cfb5a1dcb98af821b1ecb6) lib/libpfctl/libpfctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- You are receiving this mail because: You are the assignee for the bug.