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)
Sun, May 17, 9:28 AM
Unknown Object (File)
Thu, May 7, 11:04 AM
Unknown Object (File)
Thu, Apr 30, 10:52 PM
Unknown Object (File)
Mon, Apr 27, 8:11 AM
Unknown Object (File)
Sun, Apr 19, 11:40 AM
Unknown Object (File)
Apr 16 2026, 11:06 PM
Unknown Object (File)
Apr 9 2026, 2:23 AM
Unknown Object (File)
Apr 6 2026, 3:04 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