Received: from eggs.gnu.org ([208.118.235.92]:39758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDstj-00077m-Ef for qemu-devel@nongnu.org; Fri, 08 Mar 2013 03:43:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDstf-00030N-UI for qemu-devel@nongnu.org; Fri, 08 Mar 2013 03:43:27 -0500 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:52093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDstf-00030B-NO for qemu-devel@nongnu.org; Fri, 08 Mar 2013 03:43:23 -0500 Received: by mail-wi0-f172.google.com with SMTP id ez12so1259984wid.5 for ; Fri, 08 Mar 2013 00:43:22 -0800 (PST) Date: Fri, 8 Mar 2013 09:43:18 +0100 From: Stefan Hajnoczi Message-ID: <20130308084318.GA8984@stefanha-thinkpad.redhat.com> References: <20130305163510.GC3177@type.bordeaux.inria.fr> <20130306122937.GD1954@stefanha-thinkpad.muc.redhat.com> <20130306131525.GC6173@type.bordeaux.inria.fr> <20130307093826.GE13854@stefanha-thinkpad.redhat.com> <20130307171428.GC6043@type.bordeaux.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130307171428.GC6043@type.bordeaux.inria.fr> Subject: Re: [Qemu-devel] [PER] Re: socket, mcast looping back frames -> IPv6 broken List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault , ped@listes.subiron.org, qemu-devel@nongnu.org On Thu, Mar 07, 2013 at 06:14:28PM +0100, Samuel Thibault wrote: > Stefan Hajnoczi, le Thu 07 Mar 2013 10:38:26 +0100, a écrit : > > On Wed, Mar 06, 2013 at 02:15:25PM +0100, Samuel Thibault wrote: > > > Stefan Hajnoczi, le Wed 06 Mar 2013 13:29:37 +0100, a écrit : > > > > On Tue, Mar 05, 2013 at 05:35:10PM +0100, Samuel Thibault wrote: > > > > Unfortunately net/socket.c does not have the concept of a link-layer > > > > address, so we cannot easily filter out multicast packets coming from > > > > our NIC's address. > > > > > > > > Are you aware of a way to filter out just the packets sent by *this* > > > > process? > > > > > > I haven't seen any in the Linux source code. One thing that should > > > work, however, is to use recvfrom, and drop whatever comes from our > > > sockname. > > > > Sounds like a plan :). > > Except that the sockname is the multicast address itself... I'll have a > closer look. What about the port number? Stefan