aboutsummaryrefslogtreecommitdiff
path: root/lib/libpfctl/libpfctl.h
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2021-04-15 14:12:11 +0000
committerKristof Provost <kp@FreeBSD.org>2021-04-19 12:31:47 +0000
commit42ec75f83aa321fcea8d2eddc4e9099724f0669e (patch)
treecb2ed4204eef02f1724d5b6a98e7c95bf5b25160 /lib/libpfctl/libpfctl.h
parent8bb0f1b87b80fd0a9c9dc388851cb609298d36ef (diff)
downloadsrc-42ec75f83aa321fcea8d2eddc4e9099724f0669e.tar.gz
src-42ec75f83aa321fcea8d2eddc4e9099724f0669e.zip
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
Diffstat (limited to 'lib/libpfctl/libpfctl.h')
-rw-r--r--lib/libpfctl/libpfctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpfctl/libpfctl.h b/lib/libpfctl/libpfctl.h
index 32d0184f42ed..2c498189a6e4 100644
--- a/lib/libpfctl/libpfctl.h
+++ b/lib/libpfctl/libpfctl.h
@@ -188,5 +188,6 @@ int pfctl_get_clear_rule(int dev, u_int32_t nr, u_int32_t ticket,
int pfctl_add_rule(int dev, const struct pfctl_rule *r,
const char *anchor, const char *anchor_call, u_int32_t ticket,
u_int32_t pool_ticket);
+int pfctl_set_keepcounters(int dev, bool keep);
#endif