Page MenuHomeFreeBSD

pfctl: clear statistic for the address
AbandonedPublic

Authored by vegeta_tuxpowered.net on Thu, Nov 21, 10:21 PM.
Tags
None
Referenced Files
F103208026: D47698.diff
Fri, Nov 22, 6:20 AM
F103206461: D47698.diff
Fri, Nov 22, 5:58 AM
F103177975: D47698.diff
Thu, Nov 21, 10:42 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.