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)
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
Unknown Object (File)
Nov 11 2025, 11:29 AM
Unknown Object (File)
Nov 3 2025, 7:19 PM
Unknown Object (File)
Oct 29 2025, 9:52 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