Re: kern.ipc.maxsockbuf vs reality?

[ Available lists | Index of freebsd-hackers | Month of Jul 2000 | Week of 23 Jul 2000 | Raw email | View thread | Wrap long lines | Reply ]
From
Kelly Yancey <kbyanc@posi.net>
Date
23 Jul 2000 16:19:03
Subject
Re: kern.ipc.maxsockbuf vs reality?
Message-ID
Pine.BSF.4.21.0007231620310.37411-100000@gateway.posi.net

In reply to

[ Hide this part ]
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 - kbyanc@posi.net - 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.103 seconds