svn commit: r368588 - head/sys/netpfil/pf

Kristof Provost kp at FreeBSD.org
Sat Dec 12 20:14:40 UTC 2020


Author: kp
Date: Sat Dec 12 20:14:39 2020
New Revision: 368588
URL: https://svnweb.freebsd.org/changeset/base/368588

Log:
  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 usings getting caught out by the change from tunable
  to run time configuration.
  
  Suggested by:	Franco Fichtner
  MFC after:	3 days

Modified:
  head/sys/netpfil/pf/pf.c

Modified: head/sys/netpfil/pf/pf.c
==============================================================================
--- head/sys/netpfil/pf/pf.c	Sat Dec 12 19:43:38 2020	(r368587)
+++ head/sys/netpfil/pf/pf.c	Sat Dec 12 20:14:39 2020	(r368588)
@@ -382,7 +382,7 @@ SYSCTL_ULONG(_net_pf, OID_AUTO, states_hashsize, CTLFL
     &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);


More information about the svn-src-head mailing list