Date: Wed, 11 Apr 2001 18:54:03 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: current@freebsd.org Subject: SOMAXCONN -- not tunable? Message-ID: <200104111854.LAA25459@usr07.primenet.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104111854.LAA25459>