From owner-freebsd-current Wed Apr 11 11:30:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id D26A337B422 for ; Wed, 11 Apr 2001 11:30:31 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id LAA20017 for ; Wed, 11 Apr 2001 11:30:29 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp03.primenet.com, id smtpdAAAfeaaeN; Wed Apr 11 11:30:20 2001 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id LAA25116 for current@freebsd.org; Wed, 11 Apr 2001 11:30:34 -0700 (MST) From: Terry Lambert Message-Id: <200104111830.LAA25116@usr07.primenet.com> Subject: Who is maintainer of kerberos/heimdall/sendmail? To: current@freebsd.org Date: Wed, 11 Apr 2001 18:30:34 +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 Who is the maintainer of this code? They appear to use SOMAXCONN, incorrectly. The value of SOMAXCONN is not valis; the valid limit is only obtainable from sysctl (kern.ipc.somaxconn). Here is a function which does the right thing: int getsomaxconn( void) { char *name = "kern.ipc.somaxconn"; int somaxconn; size_t size = sizeof(somaxconn); if( sysctlbyname(name, &somaxconn,&size, NULL, 0)) somaxconn = SOMAXCONN; return( somaxconn); } If someone wants something prettier (e.g. sysctl instead of sysctlbyname), they are welcome to write it. 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