Page MenuHomeFreeBSD

pfctl: Fix clearing rules counters
ClosedPublic

Authored by kp on Apr 12 2021, 3:30 PM.
Tags
None
Referenced Files
F174600885: D29727.id87431.diff
Sun, Oct 4, 2:17 PM
Unknown Object (File)
Sat, Oct 3, 11:06 AM
Unknown Object (File)
Thu, Oct 1, 8:29 AM
Unknown Object (File)
Sat, Sep 26, 10:26 PM
Unknown Object (File)
Tue, Sep 8, 7:09 PM
Unknown Object (File)
Sat, Sep 5, 6:45 AM
Unknown Object (File)
Sat, Sep 5, 5:47 AM
Unknown Object (File)
Sat, Sep 5, 1:11 AM
Subscribers

Details

Summary

After the migration to libpfctl for rule retrieval we accidentally lost
support for clearing the rules counters.

Introduce a get_clear variant of pfctl_get_rule() which allows rules
counters to be cleared.

MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable