From owner-freebsd-current Wed Apr 11 11:54: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id 6BD5937B424 for ; Wed, 11 Apr 2001 11:54:04 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id LAA27874 for ; Wed, 11 Apr 2001 11:46:56 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp02.primenet.com, id smtpdAAA65aGu2; Wed Apr 11 11:46:43 2001 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id LAA25459 for current@freebsd.org; Wed, 11 Apr 2001 11:54:04 -0700 (MST) From: Terry Lambert Message-Id: <200104111854.LAA25459@usr07.primenet.com> Subject: SOMAXCONN -- not tunable? To: current@freebsd.org Date: Wed, 11 Apr 2001 18:54:03 +0000 (GMT) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here are patches to make SOMAXCONN tunable from the config files. Right now, it's not possible to override SOMAXCONN. I would like to see these merged into 4.3? I stuffed the option into opt_inet.h, since it is the only opt_*.h file already included in the only place the value is used in the kernel (kern/uipc_socket.c). Obviously, user space programs should use kern.ipc.somaxconn to retrieve the current value, rather than relying on the header. What is the feeling about #ifdef _KERNEL and providing sysctl inlines, so that user space programs "just work" for everything but global (static) initializers? Index: socket.h =================================================================== RCS file: /home/cvs/FreeBSD/sys/sys/socket.h,v retrieving revision 1.1.1.1 diff -r1.1.1.1 socket.h 303a304 > #ifndef SOMAXCONN 304a306 > #endif Index: options =================================================================== RCS file: /home/cvs/FreeBSD/sys/conf/options,v retrieving revision 1.5 diff -r1.5 options 262a263 > SOMAXCONN opt_inet.h Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message