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, Nov 13, 3:31 AM
Unknown Object (File)
Tue, Nov 11, 11:29 AM
Unknown Object (File)
Mon, Nov 3, 7:19 PM
Unknown Object (File)
Wed, Oct 29, 9:52 AM
Unknown Object (File)
Sat, Oct 18, 8:46 AM
Unknown Object (File)
Sat, Oct 18, 2:54 AM
Unknown Object (File)
Oct 15 2025, 1:03 PM
Unknown Object (File)
Oct 11 2025, 2:33 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