From owner-freebsd-net Sat Mar 1 5:41:30 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D093A37B401 for ; Sat, 1 Mar 2003 05:41:28 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9930043FBD for ; Sat, 1 Mar 2003 05:41:24 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (root@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with SMTP id h21DfLue080692 for ; Sat, 1 Mar 2003 15:41:21 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id h21DfKHR080679 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 1 Mar 2003 15:41:21 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id h21DfIQ7080674; Sat, 1 Mar 2003 15:41:18 +0200 (EET) Date: Sat, 1 Mar 2003 15:41:18 +0200 From: Ruslan Ermilov To: Garrett Wollman Cc: Alexey Zelkin , freebsd-net@freebsd.org Subject: Re: maxsockbuf is useless value {?|:-(} Message-ID: <20030301134118.GE77007@sunbay.com> References: <20030228130621.A16504@phantom.cris.net> <200302281931.h1SJVAUg060319@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gDGSpKKIBgtShtf+" Content-Disposition: inline In-Reply-To: <200302281931.h1SJVAUg060319@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --gDGSpKKIBgtShtf+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 28, 2003 at 02:31:10PM -0500, Garrett Wollman wrote: > < said: >=20 > > Working with Sun JDK network code I have realized a need to provide some > > range checking wrapper for setsockopt() in SO_{SND,RCV}BUF cases. Short > > walk over documentation shown that maximum buffer size is exported via > > kern.ipc.maxsockbuf sysctl. But attempt to use this value as maximum > > buffer size was not successful -- it is too large for kernel. >=20 > It is not intended that you do this. >=20 So we can just rip it? :-) Seriously, you didn't give any alternative. How does one knows the maximum allowed limit? By just blindly trying? Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --gDGSpKKIBgtShtf+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+YLh9Ukv4P6juNwoRAi2AAJ4+XDMLIsj+DMBrtll7j7uu3oGrAwCaAjAM D9y9V1rVgZvM9JgQD2Q4bw8= =qOzP -----END PGP SIGNATURE----- --gDGSpKKIBgtShtf+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message