Page MenuHomeFreeBSD

pfctl: Fix clearing rules counters
ClosedPublic

Authored by kp on Apr 12 2021, 3:30 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Fri, Sep 4, 12:44 PM
Unknown Object (File)
Fri, Sep 4, 8:01 AM
Unknown Object (File)
Thu, Sep 3, 12:48 PM
Unknown Object (File)
Wed, Sep 2, 6:04 PM
Unknown Object (File)
Wed, Sep 2, 5:13 PM
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