[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OFDA173EE1.60049F6E-ON88257379.0052A408-88257379.00544DA0@us.ibm.com>
Date: Fri, 19 Oct 2007 08:21:51 -0700
From: David Stevens <dlstevens@...ibm.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: brian.haley@...com, netdev@...r.kernel.org,
netdev-owner@...r.kernel.org,
vladislav.yasevich@...com (Vlad Yasevich)
Subject: Re: multicast: bug or "feature"
netdev-owner@...r.kernel.org wrote on 10/19/2007 04:43:27 AM:
> Vlad Yasevich <vladislav.yasevich@...com> wrote:
> >
> > Now, to figure out what IPv6 does different and why it works.
> > Seems to me that the two should have the same behavior.
>
> IPv6 on Linux uses a per-interface addressing model as opposed
> to the per-host model used by IPv4.
For link-local addresses, yes.
It's really a security feature; the ordinary
case where you'd receive something on an interface that's
using one of your source addresses is when someone is spoofing
you, has a duplicate address, or maybe an (unintentional)
routing loop. All of those are error cases, so dropping a
received packet that claims to be sent by you is a reasonable
thing to do.
If you're getting link-local source addresses for your
IPv6 multicast packets, that may explain it. The link-local
addresses are required to be unique and valid only for that
link, so IPv6 should not consider a different interface's
link-local address as "local" for a destination address, or
a packet using that source address as bogus.
For a global address, v4 and v6 use the same rules--
for a destination you can receive it on any interface for
any global address. So, if your source address was a global
IPv6 address and it worked, I'd guess IPv6 just isn't checking
the source address. I don't know that it's required by RFC for
either v4 or v6, though it's probably a good idea.
+-DLS
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists