Page MenuHomeFreeBSD

pfctl: clear statistic for the address
AbandonedPublic

Authored by vegeta_tuxpowered.net on Nov 21 2024, 10:21 PM.
Tags
None
Referenced Files
F152458859: D47698.id.diff
Wed, Apr 15, 2:25 AM
Unknown Object (File)
Mon, Apr 6, 11:56 AM
Unknown Object (File)
Mar 14 2026, 2:43 PM
Unknown Object (File)
Jan 22 2026, 5:40 AM
Unknown Object (File)
Dec 28 2025, 2:27 AM
Unknown Object (File)
Nov 25 2025, 11:51 AM
Unknown Object (File)
Nov 8 2025, 7:39 PM
Unknown Object (File)
Oct 30 2025, 10:12 PM
Subscribers

Details

Reviewers
kp
Summary

The ioctl DIOCRCLRASTATS provides the functionality of clearing stats
not only for the whole table for for addresses stored in that table. The
functionality is missing from pfctl, though.

Extend pfctl -t … -Tz to support specifying addresses to zero.

PR: 282877
Obtained from: OpenBSD

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

vegeta_tuxpowered.net edited the summary of this revision. (Show Details)

I have the same patch (along with a test case) running a final test build now.

I'd like to stick to my 'Obtained from' format because it's more specific: ' Obtained from: OpenBSD, kirill <kirill@openbsd.org>, e496dff3a7'

I will steal your commit message though.