HomeFreeBSD

pfctl: Fix clearing rules counters

Description

pfctl: Fix clearing rules counters

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")
Differential Revision: https://reviews.freebsd.org/D29727

(cherry picked from commit 4eabfe468b6e80a0823523d83dc908c27ec823c7)

Details

Provenance
kpAuthored on Apr 12 2021, 3:23 PM
Differential Revision
D29727: pfctl: Fix clearing rules counters
Parents
rG4649dfb184cb: pfctl, libpfctl: introduce pfctl_pool
Branches
Unknown
Tags
Unknown