aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2020-12-15 08:29:45 +0000
committerKristof Provost <kp@FreeBSD.org>2020-12-15 08:29:45 +0000
commit08d13750ebdae45bcdb73d52665b823e9ba93db1 (patch)
tree428f51f8869317f048e926bd8a76607f293d0a7b
parent103a5e30fa98f5750b54ba1277d2f8af391539a7 (diff)
downloadsrc-08d13750ebdae45bcdb73d52665b823e9ba93db1.tar.gz
src-08d13750ebdae45bcdb73d52665b823e9ba93db1.zip
MFC r368588:
pf: Allow net.pf.request_maxcount to be set from loader.conf Mark request_maxcount as RWTUN so we can set it both at runtime and from loader.conf. This avoids users getting caught out by the change from tunable to run time configuration. Suggested by: Franco Fichtner
Notes
Notes: svn path=/stable/12/; revision=368656
-rw-r--r--sys/netpfil/pf/pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 0bc8433dd22b..343d2aed434a 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -382,7 +382,7 @@ SYSCTL_ULONG(_net_pf, OID_AUTO, states_hashsize, CTLFLAG_RDTUN,
&pf_hashsize, 0, "Size of pf(4) states hashtable");
SYSCTL_ULONG(_net_pf, OID_AUTO, source_nodes_hashsize, CTLFLAG_RDTUN,
&pf_srchashsize, 0, "Size of pf(4) source nodes hashtable");
-SYSCTL_ULONG(_net_pf, OID_AUTO, request_maxcount, CTLFLAG_RW,
+SYSCTL_ULONG(_net_pf, OID_AUTO, request_maxcount, CTLFLAG_RWTUN,
&pf_ioctl_maxcount, 0, "Maximum number of tables, addresses, ... in a single ioctl() call");
VNET_DEFINE(void *, pf_swi_cookie);