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
diff -r1.1.1.1 socket.h
> #ifndef SOMAXCONN
> #endif
Index: options
RCS file: /home/cvs/FreeBSD/sys/conf/options,v
retrieving revision 1.5
diff -r1.5 options
> SOMAXCONN             opt_inet.h

                                        Terry Lambert
                                        [EMAIL PROTECTED]
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to