Skip site navigation (1)Skip section navigation (2)
Date:      16 Dec 2001 21:36:34 -0000
From:      carl@slackerbsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/32912: options misssing TCBHASHSIZE
Message-ID:  <20011216213634.67947.qmail@slackerbsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         32912
>Category:       kern
>Synopsis:       options misssing TCBHASHSIZE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 16 13:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Carl Schmidt
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD Carbon.SlackerBSD.ORG 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Dec 13 19:42:50 EST 2001 root@Carbon.SlackerBSD.ORG:/usr/obj/usr/src/sys/CARBON i386

>Description:
/sys/conf/options is lacking TCBHASHSIZE and so is LINT.
This isn't really a sw-bug but i don't think misc or doc-bug would really be
appropriate either. Sorry (and correct me) if I'm wrong.

>How-To-Repeat:
grep TCBHASHSIZE /sys/netinet/tcp_subr.c
grep TCBHASHSIZE /sys/conf/options
grep TCBHASHSIZE /sys/i386/conf/LINT

>Fix:
--- options.old	Fri Nov  2 20:41:07 2001
+++ options	Sun Dec 16 16:03:20 2001
@@ -269,6 +269,7 @@
 PPP_FILTER		opt_ppp.h
 RANDOM_IP_ID
 SLIP_IFF_OPTS		opt_slip.h
+TCBHASHSIZE
 TCPDEBUG
 TCP_DROP_SYNFIN		opt_tcp_input.h
 XBONEHACK

--- LINT.old	Fri Dec 14 22:29:03 2001
+++ LINT	Sun Dec 16 16:35:39 2001
@@ -556,6 +556,10 @@
 # packets without touching the ttl).  This can be useful to hide firewalls
 # from traceroute and similar tools.
 #
+# TCBHASHSIZE is the target size of the TCP PCB (process control block) hash
+# tables.  This must be a power of 2.  The default is 512 (2^9). See tcp(4)
+# for more information.
+#
 # TCPDEBUG is undocumented.
 #
 options 	MROUTING		# Multicast routing
@@ -573,6 +577,7 @@
 options 	IPFILTER_LOG		#ipfilter logging
 options		IPFILTER_DEFAULT_BLOCK	#block all packets by default
 options 	IPSTEALTH		#support for stealth forwarding
+options		TCBHASHSIZE=512		#tcp pcb hash table size
 options 	TCPDEBUG
 
 # RANDOM_IP_ID causes the ID field in IP packets to be randomized
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011216213634.67947.qmail>