diff options
author | seanc <seanc@FreeBSD.org> | 2002-10-12 07:45:23 +0000 |
---|---|---|
committer | seanc <seanc@FreeBSD.org> | 2002-10-12 07:45:23 +0000 |
commit | a442bb828050e9c0c620db90cfa62cc9b3e9ca2b (patch) | |
tree | b2433b86cd577ae4fbaa985327f9feb96fa67f10 /sys/netinet/ip_dummynet.c | |
parent | c407ddb93b06b3e77e768b8307bb0f9fbbfe6c62 (diff) | |
download | FreeBSD-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.c | 4 |
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; |