From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPA0R-0002qc-7s for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPA0H-0000BZ-PZ for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:12:59 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:53582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPA0H-0000BI-Ix for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:12:49 -0400 Received: by mail-we0-f178.google.com with SMTP id z53so4650527wey.9 for ; Mon, 08 Apr 2013 04:12:48 -0700 (PDT) Date: Mon, 8 Apr 2013 13:12:45 +0200 From: Stefan Hajnoczi Message-ID: <20130408111245.GA12852@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> <20130308084318.GA8984@stefanha-thinkpad.redhat.com> <20130308090855.GT5863@type.youpi.perso.aquilenet.fr> <20130308124737.GS5863@type.youpi.perso.aquilenet.fr> <51592A97.1050305@dev-zero.net> <20130401093229.GV17794@type.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130401093229.GV17794@type.youpi.perso.aquilenet.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 Mon, Apr 01, 2013 at 11:32:29AM +0200, Samuel Thibault wrote: > Mike Lovell, le Mon 01 Apr 2013 00:35:03 -0600, a écrit : > > On 03/08/2013 05:47 AM, Samuel Thibault wrote: > > >Samuel Thibault, le Fri 08 Mar 2013 10:08:55 +0100, a écrit : > > >>There does exist some unique address, which is returned by recvfrom, > > >>I'll have a look at how to get access to it. > > >Ah, no, it's not unique... It's just the host IP address and the same > > >port as the multicast address, so it'll be the same for all qemus on the > > >same host. I've checked how Linux bounces the datagram, it's through > > >the loopback interface, and thus dispatched over all listeners without > > >distinction. I don't see any way to get the information that the packet > > >comes from us, except using the ethernet content. > > > > one solution is to actually use two sockets. one that is bound to the > > multicast address, which receives the multicast packets, and another that is > > just bound to any ephemeral udp port, which is used for sending packets. > > Mmm, that should work indeed. > > > if the group is interested is a solution like this, i can probably make some > > time over the next couple days to cook up a patch. thoughts? > > Yes, please. Yeah, great. It's a real problem that people are hitting so it would be worth fixing. Stefan