From owner-freebsd-net Fri Feb 28 11:31:14 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 1A8C737B405 for ; Fri, 28 Feb 2003 11:31:13 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA79743FB1 for ; Fri, 28 Feb 2003 11:31:11 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.6/8.12.6) with ESMTP id h1SJVApI060322 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 28 Feb 2003 14:31:10 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.6/8.12.6/Submit) id h1SJVAUg060319; Fri, 28 Feb 2003 14:31:10 -0500 (EST) (envelope-from wollman) Date: Fri, 28 Feb 2003 14:31:10 -0500 (EST) From: Garrett Wollman Message-Id: <200302281931.h1SJVAUg060319@khavrinen.lcs.mit.edu> To: Alexey Zelkin Cc: freebsd-net@FreeBSD.ORG Subject: maxsockbuf is useless value {?|:-(} In-Reply-To: <20030228130621.A16504@phantom.cris.net> References: <20030228130621.A16504@phantom.cris.net> 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 < said: > 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. It is not intended that you do this. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message