From owner-freebsd-net@FreeBSD.ORG Sun May 14 14:26:28 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 5BB4016A402; Sun, 14 May 2006 14:26:28 +0000 (UTC) (envelope-from bms@spc.org) Received: from mindfull.spc.org (mindfull.spc.org [83.167.185.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id C56E943D45; Sun, 14 May 2006 14:26:27 +0000 (GMT) (envelope-from bms@spc.org) Received: from arginine.spc.org ([83.167.185.2]) by mindfull.spc.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52) id 1FfHY7-0005zi-HR; Sun, 14 May 2006 15:26:23 +0100 Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 083E665499; Sun, 14 May 2006 15:26:26 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17163-05; Sun, 14 May 2006 15:26:25 +0100 (BST) Received: by arginine.spc.org (Postfix, from userid 1078) id 073C1653F9; Sun, 14 May 2006 15:26:25 +0100 (BST) Date: Sun, 14 May 2006 15:26:24 +0100 From: Bruce M Simpson To: Stephen Clark , Robert Watson , freebsd-net@freebsd.org, pavlin@icir.org, atanu@icir.org Message-ID: <20060514142624.GG79277@spc.org> Mail-Followup-To: Bruce M Simpson , Stephen Clark , Robert Watson , freebsd-net@freebsd.org, pavlin@icir.org, atanu@icir.org References: <20060509122801.GA65297@spc.org> <20060509131517.GB79277@spc.org> <20060512030152.X20138@fledge.watson.org> <4463FD1D.9010600@seclark.us> <20060512131227.GD79277@spc.org> <20060513230315.GE79277@spc.org> <44667C7E.1020401@seclark.us> <20060514140044.GF79277@spc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060514140044.GF79277@spc.org> User-Agent: Mutt/1.4.1i Organization: Incunabulum X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mindfull.spc.org X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - spc.org X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: [PATCH] Re: IP_MAX_MEMBERSHIPS story. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 14:26:28 -0000 On Sun, May 14, 2006 at 03:00:44PM +0100, Bruce M Simpson wrote: > So I will be updating the patch in the next 24 hours. Given that it > seems stable for values 2047 <= n <= 4095 with SOCK_DGRAM I am inclined > to commit with the maximum raised to 4095 and lazy allocation in place. Committed on HEAD with some fixups, after regression testing on an SMP (dual i386) machine. The default number of multicast groups per socket available is now 31, with a final maximum of 4095. The structures are lazy-allocated. Sockets which do not use IPv4 multicast need not waste memory. Thanks, BMS