From owner-freebsd-net@FreeBSD.ORG Tue Apr 10 05:35:42 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 0516416A400 for ; Tue, 10 Apr 2007 05:35:42 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id D440213C44C for ; Tue, 10 Apr 2007 05:35:41 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 4B5DD2168D2; Tue, 10 Apr 2007 01:35:56 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 10 Apr 2007 01:35:42 -0400 X-Sasl-enc: oj3HRuwR1Hi7hTy5DqmBR6hDsrBtxIAlVTzqthbrJoTF 1176183341 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 9A07211335; Tue, 10 Apr 2007 01:35:41 -0400 (EDT) Message-ID: <461B222B.5030602@incunabulum.net> Date: Tue, 10 Apr 2007 06:35:39 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: Yar Tikhiy References: <45FE9E24.8010201@incunabulum.net> <20070319152837.GA3984@svzserv.kemerovo.su> <20070321092605.GB41715@comp.chem.msu.su> In-Reply-To: <20070321092605.GB41715@comp.chem.msu.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 10 Apr 2007 05:35:42 -0000 Yar Tikhiy wrote: > 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. > A preliminary patch for the Rhyolite.com routed is available at: http://people.freebsd.org/~bms/dump/routed.rfc3678.diff The upcoming rewrite of IPv4 multicast host-mdoe logic (currently in bms_netdev) adds support for the Linux-derived 'struct ip_mreqn' for specifying interface indexes to IP_MULTICAST_IF. The RFC 3678 API is implemented; IGMPv3 and MLDv2 may be hooked in later on subject to available resources. The RFC 1724 hack has been completely removed from the kernel in this spin. The new code passes the existing regression tests for any-source multicast. I hope to have source-specific multicast regression tests in the main tree ASAP, I am very close to a code drop. Whilst the radical approach of rewriting this stuff may break legacy applications, they should probably be updated to support the new APIs anyway, given that Linux 2.6 and Microsoft Windows "Longhorn" both support RFC 3678. Regards, BMS