Netdev List
 help / color / mirror / Atom feed
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: David Stevens <dlstevens@us.ibm.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] make ipv4 multicast packets only get delivered to sockets	that are joined to group
Date: Thu, 14 Sep 2006 13:12:08 -0400	[thread overview]
Message-ID: <1158253928.12479.3.camel@galen.zko.hp.com> (raw)
In-Reply-To: <OFFA78855E.1D1E53C6-ON882571E9.00538B2B-882571E9.005607E5@us.ibm.com>

On Thu, 2006-09-14 at 08:39 -0700, David Stevens wrote:
> Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> wrote on 09/14/2006 03:30:37 AM:
> 
> > Hello!
> > 
> > >         No, it returns 1 (allow) if there are no filters to explicitly
> > > filter it. I wrote that code. :-)
> > 
> > I see. It did not behave this way old times.
> > 
> > From your mails I understood that current behaviour matches another
> > implementations (BSD whatever), is it true?
> 
> Hi, Alexey,
> 
> If you mean IPv6 code in current BSD derivatives, I don't know.
> 
> The IPv6 behaviour was different from IPv4 on Linux and was changed for
> compatibility with IPv4 (discussion on netdev agreed that binding
> should determine socket delivery, not group membership, or simply
> that there was no reason to be different from long-standing IPv4 
> practice).
> 
> The IPv4 code is that way for compatibility with everything else since
> about ~4.3BSD (with the possible exception of Solaris 8, apparently).
> 
> FWIW, I think Deering's original interpretation is correct. Adding
> a multicast address to an interface by joining a group is little
> different from adding a unicast address via SIOCSIFADDR, which
> certainly does affect packets delivered to the machine and to any
> INADDR_ANY-bound socket. Binding to the multicast address and not
> INADDR_ANY will give you only packets for that group, if that's
> what you want, just as in the unicast address-specific bind.
> 
>                                                         +-DLS

There was an IETF daft quite a while ago that proposed something similar
to the patch that originated this thread.  In case anyone is curious,
here is the link:
http://tools.ietf.org/wg/ipv6/draft-arunt-ipv6-multicast-filtering-rules-01.txt

That work got a few positive comments, but didn't really go anywhere.

-vlad


      reply	other threads:[~2006-09-14 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-13 14:13 [PATCH] make ipv4 multicast packets only get delivered to sockets that are joined to group Jeff Layton
2006-09-13 14:32 ` David Stevens
2006-09-13 16:12   ` Jeff Layton
2006-09-13 16:42     ` David Stevens
2006-09-14  1:09     ` David Miller
2006-09-13 20:20   ` Alexey Kuznetsov
2006-09-13 20:42     ` David Stevens
2006-09-14 10:30       ` Alexey Kuznetsov
2006-09-14 15:39         ` David Stevens
2006-09-14 17:12           ` Vlad Yasevich [this message]

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=1158253928.12479.3.camel@galen.zko.hp.com \
    --to=vladislav.yasevich@hp.com \
    --cc=dlstevens@us.ibm.com \
    --cc=netdev@vger.kernel.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