From owner-freebsd-stable@FreeBSD.ORG Thu Apr 13 06:32:19 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42EC116A400 for ; Thu, 13 Apr 2006 06:32:19 +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 9C2F743D45 for ; Thu, 13 Apr 2006 06:32:18 +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 1FTvNH-0003EJ-7i; Thu, 13 Apr 2006 07:32:15 +0100 Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id CBF9B65499; Thu, 13 Apr 2006 07:32:15 +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 97022-09; Thu, 13 Apr 2006 07:32:14 +0100 (BST) Received: by arginine.spc.org (Postfix, from userid 1078) id B06C1653F9; Thu, 13 Apr 2006 07:32:14 +0100 (BST) Date: Thu, 13 Apr 2006 07:32:14 +0100 From: Bruce M Simpson To: Stephen Clark Message-ID: <20060413063214.GA94628@spc.org> References: <443DB8A5.1020006@seclark.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <443DB8A5.1020006@seclark.us> 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: freebsd-stable@freebsd.org Subject: Re: IP_MAX_MEMBERSHIPS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 06:32:19 -0000 On Wed, Apr 12, 2006 at 10:34:13PM -0400, Stephen Clark wrote: > Can anyone tell me why the maximum number of members in a multicast > group is set at > 20? > Are there issues with increasing this number? Why would one wish to join more than 20 groups on a single socket? I realize making such a statement leaves me wide open to the charge of 640KB being enough for anyone, but... This limit in no way affects multicast routing, btw. Based on my reading of the code... This is a per-socket limit. The structures to support per-socket multicast group membership are simple linked lists or statically allocated arrays. The reason for this is so as not to break the ABI for struct ip_moptions which has been present since 4.4BSD. Changing this structure to not use the static allocation would probably break your kernel for modules compiled without such a change. Also there are IGMP timers involved. The other poster who replied is probably talking about a per-interface-card limit to do with the multicast hash filter on most Ethernet cards - this is a hard limit, and the driver/hardware has to either support multicast promiscuous mode (IFF_ALLMULTI) or be able to support full promiscuous mode (which may not work correctly with IP forwarding in my experience). Patches to refactor kernel multicast system gladly accepted! Regards, BMS P.S. Someone was meant to be porting IGMPv3/SSM but there were licensing issues with Apple.