]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Optionally attempt to preserve rule counter values across ruleset updates
authorKristof Provost <kp@FreeBSD.org>
Thu, 15 Apr 2021 14:12:11 +0000 (16:12 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 11 May 2021 08:28:22 +0000 (10:28 +0200)
commita5a03901798c76f1f7c77535a2282a60f54b0ec2
tree9164aca08e1a7e662a957184974d4df3ecf0101c
parentb0b9525172ba9f8704f810d974f56d4ee3aad51f
pf: Optionally attempt to preserve rule counter values across ruleset updates

Usually rule counters are reset to zero on every update of the ruleset.
With keepcounters set pf will attempt to find matching rules between old
and new rulesets and preserve the rule counters.

MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D29780

(cherry picked from commit 42ec75f83aa321fcea8d2eddc4e9099724f0669e)
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/parse.y
sbin/pfctl/pfctl.c
sbin/pfctl/pfctl_parser.h
share/man/man5/pf.conf.5
sys/net/pfvar.h
sys/netpfil/pf/pf_ioctl.c