opnsense-src/sbin/pfctl
Kristof Provost 65dd1a98de 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 4eabfe468b)
2021-05-07 10:15:43 +02:00
..
tests sbin/pfctl: fix tests after recent output changes 2021-03-17 09:56:28 +00:00
Makefile pfctl: Move ioctl abstraction functions into libpfctl 2021-05-07 10:15:42 +02:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
parse.y libpfctl: Switch to pfctl_rule 2021-05-07 10:15:42 +02:00
pf.os Move pf.os to sbin/pfctl/ 2018-08-11 13:58:26 +00:00
pf_print_state.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pf_ruleset.c libpfctl: Switch to pfctl_rule 2021-05-07 10:15:42 +02:00
pfctl.8 pf: Return non-zero from 'status' if pf is not enabled 2018-06-06 19:36:37 +00:00
pfctl.c pfctl: Fix clearing rules counters 2021-05-07 10:15:43 +02:00
pfctl.h libpfctl: Switch to pfctl_rule 2021-05-07 10:15:42 +02:00
pfctl_altq.c Fix the fix added in r343287 for spurious HFSC bandwidth check errors 2019-02-11 22:58:43 +00:00
pfctl_ioctl.h pfctl: Move ioctl abstraction functions into libpfctl 2021-05-07 10:15:42 +02:00
pfctl_optimize.c libpfctl: Switch to pfctl_rule 2021-05-07 10:15:42 +02:00
pfctl_osfp.c pfctl: Make most global variables static. 2016-08-04 19:24:44 +00:00
pfctl_parser.c pfctl, libpfctl: introduce pfctl_pool 2021-05-07 10:15:42 +02:00
pfctl_parser.h pfctl, libpfctl: introduce pfctl_pool 2021-05-07 10:15:42 +02:00
pfctl_qstats.c Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
pfctl_radix.c pfctl: Warn users when they run into kernel limits 2019-12-14 02:03:47 +00:00
pfctl_table.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00