Subject: kern/2350: specified value for SOMAXCONN in kernel config file is ignored
To: None <gnats-bugs@NetBSD.ORG>
From: Tor Egge <tegge@idt.unit.no>
List: netbsd-bugs
Date: 04/29/1996 19:35:53
>Number:         2350
>Category:       kern
>Synopsis:       specified value for SOMAXCONN in kernel config file is ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 29 14:05:03 1996
>Last-Modified:
>Originator:     tegge@idt.unit.no
>Organization:
	Norwegian Institute of Science and Technology
>Release:        NetBSD-current
>Environment:
System: NetBSD ikke.idt.unit.no 1.1B NetBSD 1.1B (TEGGE) #13: Tue Apr 23 00:45:57 MET DST 1996 root@ikke.idt.unit.no:/usr/src/sys/arch/i386/compile/TEGGE i386


>Description:
Currently, the line
		options         SOMAXCONN=500   # We need larger backlog
will have no effect in a kernel config file, since the value is
overriden in the socket.h header file.
>How-To-Repeat:
Try to configure a kernel with a specivied value for SOMAXCONN
>Fix:
*** /usr/src/sys/sys/socket.h.orig	Sat Feb 10 13:34:35 1996
--- usr/src/sys/sys/socket.h	Sat Feb 10 23:42:04 1996
***************
*** 239,245 ****
--- 239,247 ----
  /*
   * Maximum queue length specifiable by listen(2).
   */
+ #ifndef SOMAXCONN
  #define	SOMAXCONN	128
+ #endif
  
  /*
   * Message header for recvmsg and sendmsg calls.

>Audit-Trail:
>Unformatted: