summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2015-02-12 22:20:34 +0000
committerglebius <glebius@FreeBSD.org>2015-02-12 22:20:34 +0000
commit0813513b53329c5633485e205af36823c1c1328c (patch)
treebc674becc427458d65f257e26ff8d161549902c1 /sys/netgraph
parent78357458c3d34eed371bf22b226ca615efd0b0f4 (diff)
downloadFreeBSD-src-0813513b53329c5633485e205af36823c1c1328c.zip
FreeBSD-src-0813513b53329c5633485e205af36823c1c1328c.tar.gz
Revise default limit for maximum of netgraph data items.
With modern internet speeds the limit can be reached even on a single L2TP link.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index b5e285e..673dc25 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -2952,7 +2952,7 @@ uma_zone_t ng_qzone;
uma_zone_t ng_qdzone;
static int numthreads = 0; /* number of queue threads */
static int maxalloc = 4096;/* limit the damage of a leak */
-static int maxdata = 512; /* limit the damage of a DoS */
+static int maxdata = 4096; /* limit the damage of a DoS */
SYSCTL_INT(_net_graph, OID_AUTO, threads, CTLFLAG_RDTUN, &numthreads,
0, "Number of queue processing threads");
OpenPOWER on IntegriCloud