On Sun, 23 Jul 2000, Alfred Perlstein wrote:
> Also, if sb_max is to remain a read/write sysctl we'll need to cap
> it so that kern.ipc.maxsockbuf is always true and we don't allow
> sysadmins to shoot thier feet by scaling it too high or low, the
> only problem is that I can't for the life of me figure out the
> magic to keep sb_max (kern.ipc.maxsockbuf) as a ulong (which it
> should be, instead of an int) as well as provide a filtering
> function.
>
You'de have to use SYSCTL_PROC with a fmt of "LU". Just let the handler do
the sanity checking on sysctl writes.
Kelly
--
Kelly Yancey - [EMAIL PROTECTED] - Belmont, CA
System Administrator, eGroups.com http://www.egroups.com/
Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message