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

Details

Provenance
kpAuthored on Apr 12 2021, 3:23 PM
Differential Revision
D29727: pfctl: Fix clearing rules counters
Parents
rG6db169e92081: zfs: merge openzfs/zfs@3522f57b6 (master)
Branches
Unknown
Tags
Unknown