qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@gnu.org>
To: qemu-devel@nongnu.org
Cc: ped@listes.subiron.org
Subject: [Qemu-devel] socket,mcast looping back frames -> IPv6 broken
Date: Tue, 5 Mar 2013 17:35:10 +0100	[thread overview]
Message-ID: <20130305163510.GC3177@type.bordeaux.inria.fr> (raw)

Hello,

The reason why IPv6 does not work when using -net socket,mcast=foo is
that since qemu explicitly sets IP_MULTICAST_LOOP to 1, it receives its
own frames.  When the IPv6 stack performs duplicate addresse detection
(DAD) through a multicasted announce, it receives its own announcement,
and thus believes another machine has the same address.

AIUI, on a real physical network network boards do not receive the
multicasts they send, so the issue does not happen. Perhaps some boards
even filter out any frame with its own MAC as source, eliminating the
issue altogether.

As a result, we should probably perform this kind of dropping, I'm just
wondering at which level that would be preferable.

- We could do that in qemu_send_packet_async_with_flags, thus fixing the
issue for all kinds of frame transporters.

- Or we could do that for the only case that matters, mcast, in
net_socket_send_dgram (which will thus do it for the unicast udp case
too).

What do people think about it?

Samuel

             reply	other threads:[~2013-03-05 16:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 16:35 Samuel Thibault [this message]
2013-03-06 12:29 ` [Qemu-devel] socket,mcast looping back frames -> IPv6 broken Stefan Hajnoczi
2013-03-06 13:15   ` [Qemu-devel] [PER] Re: socket, mcast " Samuel Thibault
2013-03-07  9:38     ` Stefan Hajnoczi
2013-03-07 17:14       ` Samuel Thibault
2013-03-08  8:43         ` Stefan Hajnoczi
2013-03-08  9:08           ` Samuel Thibault
2013-03-08 12:47             ` Samuel Thibault
2013-04-01  6:35               ` Mike Lovell
2013-04-01  9:32                 ` Samuel Thibault
2013-04-08 11:12                   ` Stefan Hajnoczi
2013-03-10 20:01   ` Samuel Thibault
2013-03-11  8:36     ` Stefan Hajnoczi
2013-04-01  0:12       ` [Qemu-devel] [PATCH] Document mcast+ipv6 (Was: Re: socket, mcast looping back frames -> IPv6 broken) Samuel Thibault
2013-04-08 11:13         ` Stefan Hajnoczi
2013-04-08 12:11           ` Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130305163510.GC3177@type.bordeaux.inria.fr \
    --to=samuel.thibault@gnu.org \
    --cc=ped@listes.subiron.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).