git: 5b182c68c0f5 - stable/13 - pfctl: also remove incorrect counter print for rule anchors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Apr 2025 21:15:48 UTC
The branch stable/13 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=5b182c68c0f5d7cf65933b75157d9c363f7a9ee5
commit 5b182c68c0f5d7cf65933b75157d9c363f7a9ee5
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-04-15 11:13:50 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-04-21 21:14:17 +0000
pfctl: also remove incorrect counter print for rule anchors
Just as for nat anchors we can't print counters for rule anchors. Remove the
incorrect print call.
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 0fc3c29fb3dd6ab6436a78c502544ebf2cf63ee2)
---
sbin/pfctl/pfctl.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index e285bc466bc3..05e524d8df5f 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1077,7 +1077,6 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format,
}
mnr = prs.nr;
- pfctl_print_rule_counters(&rule, opts);
for (nr = 0; nr < mnr; ++nr) {
prs.nr = nr;
if (ioctl(dev, DIOCGETRULESET, &prs))