From owner-freebsd-net@FreeBSD.ORG Wed Mar 21 09:26:32 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67DD616A401 for ; Wed, 21 Mar 2007 09:26:32 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 8D40613C4E1 for ; Wed, 21 Mar 2007 09:26:28 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l2L9Q9l2062537; Wed, 21 Mar 2007 12:26:09 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l2L9Q6sj062534; Wed, 21 Mar 2007 12:26:06 +0300 (MSK) (envelope-from yar) Date: Wed, 21 Mar 2007 12:26:05 +0300 From: Yar Tikhiy To: Bruce M Simpson Message-ID: <20070321092605.GB41715@comp.chem.msu.su> References: <45FE9E24.8010201@incunabulum.net> <20070319152837.GA3984@svzserv.kemerovo.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070319152837.GA3984@svzserv.kemerovo.su> User-Agent: Mutt/1.5.9i Cc: Eugene Grosbein , net@freebsd.org Subject: Re: Interface index hack in IP_ADD_MEMBERSHIP 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: Wed, 21 Mar 2007 09:26:32 -0000 On Mon, Mar 19, 2007 at 10:28:37PM +0700, Eugene Grosbein wrote: > On Mon, Mar 19, 2007 at 02:28:52PM +0000, Bruce M Simpson wrote: > > > I plan to get rid of the ugly little ip_multicast_if() hack in the IP > > stack.= > > Before I do, is anyone actually using this? > > > > RFC 3678 specifies a protocol independent API for socket group > > memberships which allow joins on interfaces referenced by index. This is > > intended to support IGMPv3 and MLDv2. > > I recall that routed and ripd used to utilize something similar > long time ago. I'm not sure if they have switched to another API. Quagga still uses it, too, if its configure script detects FreeBSD or NetBSD. I'm afraid it was me who submitted the patch to the Quagga folks when I'd found that Quagga's ospfd couldn't handle unnumbered P2P interfaces in FreeBSD because their local IPs weren't unique. Unfortunately, Quagga doesn't seem to use the protocol independent part of the RFC 3678 API yet. -- Yar