git: 0fc3c29fb3dd - main - pfctl: also remove incorrect counter print for rule anchors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Apr 2025 12:46:37 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=0fc3c29fb3dd6ab6436a78c502544ebf2cf63ee2
commit 0fc3c29fb3dd6ab6436a78c502544ebf2cf63ee2
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-04-15 11:13:50 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-04-15 11:13:50 +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")
---
sbin/pfctl/pfctl.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index b4318159b4ec..a9fc33525dd6 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1269,7 +1269,6 @@ pfctl_show_rules(int dev, char *path, int opts, enum pfctl_show format,
errc(1, ret, "DIOCGETRULESETS");
}
- pfctl_print_rule_counters(&rule, opts);
for (nr = 0; nr < mnr; ++nr) {
if ((ret = pfctl_get_ruleset(pfh, npath, nr, &prs)) != 0)
errc(1, ret, "DIOCGETRULESET");