From owner-svn-src-all@FreeBSD.ORG Fri Apr 16 10:40:09 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FC9D106566B; Fri, 16 Apr 2010 10:40:09 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id F2B6A8FC15; Fri, 16 Apr 2010 10:40:08 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 5753941C795; Fri, 16 Apr 2010 12:40:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id zjSWnFBwEG+n; Fri, 16 Apr 2010 12:40:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id DD92541C756; Fri, 16 Apr 2010 12:40:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id DE2914448EC; Fri, 16 Apr 2010 10:39:38 +0000 (UTC) Date: Fri, 16 Apr 2010 10:39:38 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Bruce Simpson In-Reply-To: <4BC83A12.2080700@incunabulum.net> Message-ID: <20100416103826.X40281@maildrop.int.zabbadoz.net> References: <201004101205.o3AC5VGp074266@svn.freebsd.org> <4BC7486C.9010804@incunabulum.net> <20100416102318.16752py80bkf418g@webmail.leidinger.net> <4BC83A12.2080700@incunabulum.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, Alexander Leidinger , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r206452 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 10:40:09 -0000 On Fri, 16 Apr 2010, Bruce Simpson wrote: > On 04/16/10 09:23, Alexander Leidinger wrote: >> >>> IP multicast group membership is always scoped to physical links [1]. The >>> 4.4BSD API originally used the "primary IP address" to identify each link. >>> Unfortunately this is not a persistent identifier, especially so in the >>> use-case which had problems. >> >> >> Is/was this the reason why multicast does not work in jails? > > The above point is totally unrelated to jail. > > I think the problem with jail is the fact that to receive multicast, sockets > normally need to be bound to INADDR_ANY. Obviously, jail changes socket > behaviour in interesting ways. > > This may require refactoring udp_input() considerably. We use the 4.4BSD > legacy LIST_FOREACH() loop to deliver, rather than using a fan-in map (which > is the Windows/Solaris approach). > > Linux also has 4.4BSD semantics, but can work around this by examining the > SO_BINDTODEVICE option in the same path. SO_BINDTODEVICE would not be enough of a check unless the interface could be dedicated to a jail which classic jails did and do not support. Virtual network stacks will be the solution for this. -- Bjoern A. Zeeb It will not break if you know what you are doing.