Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2025 12:46:37 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0fc3c29fb3dd - main - pfctl: also remove incorrect counter print for rule anchors
Message-ID:  <202504151246.53FCkbFu078379@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504151246.53FCkbFu078379>