From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMSMr-0006X9-8B for qemu-devel@nongnu.org; Sun, 31 Mar 2013 20:12:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMSMo-00073p-39 for qemu-devel@nongnu.org; Sun, 31 Mar 2013 20:12:57 -0400 Received: from toccata.ens-lyon.fr ([140.77.166.68]:42374 helo=toccata.ens-lyon.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMSMn-00072t-Tb for qemu-devel@nongnu.org; Sun, 31 Mar 2013 20:12:54 -0400 Date: Mon, 1 Apr 2013 02:12:51 +0200 From: Samuel Thibault Message-ID: <20130401001251.GD17794@type.youpi.perso.aquilenet.fr> References: <20130305163510.GC3177@type.bordeaux.inria.fr> <20130306122937.GD1954@stefanha-thinkpad.muc.redhat.com> <20130310200152.GY6036@type.youpi.perso.aquilenet.fr> <20130311083614.GA28434@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130311083614.GA28434@stefanha-thinkpad.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] Document mcast+ipv6 (Was: Re: socket, mcast looping back frames -> IPv6 broken) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: ped@listes.subiron.org, qemu-devel@nongnu.org Stefan Hajnoczi, le Mon 11 Mar 2013 09:36:14 +0100, a =E9crit : > > Otherwise we may just document that one has to disable Duplicate Addr= ess > > Detection to get IPv6 working :/ >=20 > Seems like this might be the only way for now. Here is a patch Samuel Document how to get IPv6 working with mcast socket Document that IPv6 can not work in mcast mode unless disabling DAD in the guest. Signed-off-by: Samuel Thibault diff --git a/qemu-options.hx b/qemu-options.hx index c40ba55..9074a24 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1683,6 +1683,12 @@ mcast support is compatible with User Mode Linux (= argument @option{eth@var{N}=3Dmc @url{http://user-mode-linux.sf.net}. @item Use @option{fd=3Dh} to specify an already opened UDP multicast socket. +@item +Since with multicast diffusion the guest will receive its own frames, it= s IPv6 +Duplicate Address Detection (DAD) will erroneously detect a duplicate, t= hus +preventing IPv6 from working. One has to disable DAD to get IPv6 workin= g, for +instance on Linux by setting the sysctl @code{net.ipv6.conf.all.accept_d= ad} to +0. @end enumerate =20 Example: