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
Unknown Object (File)
Tue, Nov 25, 11:51 AM
Unknown Object (File)
Nov 8 2025, 7:39 PM
Unknown Object (File)
Oct 30 2025, 10:12 PM
Unknown Object (File)
Oct 28 2025, 6:35 AM
Unknown Object (File)
Oct 20 2025, 4:24 AM
Unknown Object (File)
Oct 11 2025, 2:26 PM
Unknown Object (File)
Sep 14 2025, 9:53 AM
Unknown Object (File)
Sep 4 2025, 6:44 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.