]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: Fix clearing rules counters
authorKristof Provost <kp@FreeBSD.org>
Mon, 12 Apr 2021 15:23:33 +0000 (17:23 +0200)
committerKristof Provost <kp@FreeBSD.org>
Wed, 14 Apr 2021 11:33:02 +0000 (13:33 +0200)
commit4eabfe468b6e80a0823523d83dc908c27ec823c7
treeb3446d95dbee2985fd7a473821ce55844251640a
parent6db169e920810bf1d7e9bd2fad5da92bfb696677
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
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/pfctl.c