summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.c
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2002-10-12 07:45:23 +0000
committerseanc <seanc@FreeBSD.org>2002-10-12 07:45:23 +0000
commita442bb828050e9c0c620db90cfa62cc9b3e9ca2b (patch)
treeb2433b86cd577ae4fbaa985327f9feb96fa67f10 /sys/netinet/ip_dummynet.c
parentc407ddb93b06b3e77e768b8307bb0f9fbbfe6c62 (diff)
downloadFreeBSD-src-a442bb828050e9c0c620db90cfa62cc9b3e9ca2b.zip
FreeBSD-src-a442bb828050e9c0c620db90cfa62cc9b3e9ca2b.tar.gz
Increase the max dummynet hash size from 1024 to 65536. Default is still
1024. Silence on: -net, -ipfw 4weeks+ Reviewed by: dd Approved by: knu (mentor) MFC after: 3 weeks
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r--sys/netinet/ip_dummynet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 49f58fc..3c2ee99 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -1463,8 +1463,8 @@ alloc_hash(struct dn_flow_set *x, struct dn_flow_set *pfs)
l = dn_hash_size;
if (l < 4)
l = 4;
- else if (l > 1024)
- l = 1024;
+ else if (l > DN_MAX_HASH_SIZE)
+ l = DN_MAX_HASH_SIZE;
x->rq_size = l;
} else /* one is enough for null mask */
x->rq_size = 1;
OpenPOWER on IntegriCloud