summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-07-05 08:46:55 +0000
committermsmith <msmith@FreeBSD.org>1999-07-05 08:46:55 +0000
commit36e6752409ff0942f4248605bd0089086ffb9dfe (patch)
tree796f290728747b4023ee70b97cf8c430089c0cce /sys/netinet/tcp_subr.c
parent9269cbe34a195665937c08188152618d66fcbe5c (diff)
downloadFreeBSD-src-36e6752409ff0942f4248605bd0089086ffb9dfe.zip
FreeBSD-src-36e6752409ff0942f4248605bd0089086ffb9dfe.tar.gz
Use the new tunable macros for the net.inet.tcp.tcbhashsize tunable.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 7560313..2dcee7b 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.54 1999/05/03 23:57:31 billf Exp $
+ * $Id: tcp_subr.c,v 1.55 1999/06/16 19:05:17 tegge Exp $
*/
#include "opt_compat.h"
@@ -134,8 +134,7 @@ tcp_init()
tcp_cleartaocache();
LIST_INIT(&tcb);
tcbinfo.listhead = &tcb;
- if (!(getenv_int("net.inet.tcp.tcbhashsize", &hashsize)))
- hashsize = TCBHASHSIZE;
+ TUNABLE_INT_FETCH("net.inet.tcp.tcbhashsize", TCBHASHSIZE, hashsize);
if (!powerof2(hashsize)) {
printf("WARNING: TCB hash size not a power of 2\n");
hashsize = 512; /* safe default */
OpenPOWER on IntegriCloud