[Bug 282877] pfctl: [Feature request] Allow pfctl to reset statistics for an individual IP address
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Dec 2024 14:42:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282877
--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=ac92792bbdb297d7da90d510387e8528b87899c7
commit ac92792bbdb297d7da90d510387e8528b87899c7
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-11-21 20:33:41 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-12-14 10:03:27 +0000
pfctl: clear statistic for specified addresses
The ioctl DIOCRCLRASTATS provides the functionality of clearing stats
not only for the whole table for for addresses stored in that table. The
functionality was missing from pfctl, though. Add it now.
PR: 282877
Obtained from: OpenBSD, kirill <kirill@openbsd.org>, e496dff3a7
MFC after: 3 weeks
(cherry picked from commit 6463b6b59152fb1695bbe0de78f6e2675c5a765a)
sbin/pfctl/pfctl.8 | 6 ++---
sbin/pfctl/pfctl.h | 1 +
sbin/pfctl/pfctl_radix.c | 23 +++++++++++++++++
sbin/pfctl/pfctl_table.c | 17 +++++++++++--
tests/sys/netpfil/pf/table.sh | 57 +++++++++++++++++++++++++++++++++++++++++++
5 files changed, 99 insertions(+), 5 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.