Date: Wed, 11 Apr 2001 18:30:34 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: current@freebsd.org Subject: Who is maintainer of kerberos/heimdall/sendmail? Message-ID: <200104111830.LAA25116@usr07.primenet.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104111830.LAA25116>