git: 461b79d8ee58 - stable/14 - 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:47 UTC
The branch stable/14 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=461b79d8ee58fadda788dbf49896bdd027598596
commit 461b79d8ee58fadda788dbf49896bdd027598596
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-04-15 11:13:50 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-04-21 20:25:46 +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 ddf450a5d052..d6bb0ae7f46f 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1255,7 +1255,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))