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)
Thu, Mar 12, 10:34 PM
Unknown Object (File)
Tue, Mar 3, 12:19 AM
Unknown Object (File)
Thu, Feb 26, 11:34 AM
Unknown Object (File)
Nov 28 2025, 3:23 AM
Unknown Object (File)
Nov 26 2025, 8:31 PM
Unknown Object (File)
Nov 25 2025, 8:24 PM
Unknown Object (File)
Nov 25 2025, 1:19 AM
Unknown Object (File)
Nov 13 2025, 3:31 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