summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_base.c
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-10-21 18:28:36 +0000
committersilby <silby@FreeBSD.org>2003-10-21 18:28:36 +0000
commitf0e686a675daa6e2c0de834b5fd380d875dd680b (patch)
treed7f74385af1b21c4660c768322a0bb7af0ce2ecc /sys/netgraph/ng_base.c
parent62679efced213b5b06e18e51dfd87813b839f95a (diff)
downloadFreeBSD-src-f0e686a675daa6e2c0de834b5fd380d875dd680b.zip
FreeBSD-src-f0e686a675daa6e2c0de834b5fd380d875dd680b.tar.gz
Change all SYSCTLS which are readonly and have a related TUNABLE
from CTLFLAG_RD to CTLFLAG_RDTUN so that sysctl(8) can provide more useful error messages.
Diffstat (limited to 'sys/netgraph/ng_base.c')
-rw-r--r--sys/netgraph/ng_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 8135c6e..2327b4d 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -3021,11 +3021,11 @@ static int maxalloc = 128; /* limit the damage of a leak */
static int ngqfreemax = 64;/* cache at most this many */
TUNABLE_INT("net.graph.maxalloc", &maxalloc);
-SYSCTL_INT(_net_graph, OID_AUTO, maxalloc, CTLFLAG_RD, &maxalloc,
+SYSCTL_INT(_net_graph, OID_AUTO, maxalloc, CTLFLAG_RDTUN, &maxalloc,
0, "Maximum number of queue items to allocate");
TUNABLE_INT("net.graph.ngqfreemax", &ngqfreemax);
-SYSCTL_INT(_net_graph, OID_AUTO, ngqfreemax, CTLFLAG_RD, &ngqfreemax,
+SYSCTL_INT(_net_graph, OID_AUTO, ngqfreemax, CTLFLAG_RDTUN, &ngqfreemax,
0, "Maximum number of free queue items to cache");
static const int ngqfreelow = 4; /* try malloc if free < this */
OpenPOWER on IntegriCloud