[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:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282877
--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=642ade0a3d8244c4c0cf82a335c4e940cb300a96
commit 642ade0a3d8244c4c0cf82a335c4e940cb300a96
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:25 +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.