Re: PATCH: Multicast: Filter multicast traffic per socket mc_list

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Stevens
Date: Friday, April 17, 2009 - 2:31 pm

netdev-owner@vger.kernel.org wrote on 04/17/2009 06:56:04 AM:

an

        This is not true.

multicast

        Linux is not Solaris. I think Solaris is wrong to change the
behavior from the original BSD behavior, but it should be no surprise
that there are other differences in the API's, too. It's not difficult
to write code that works as intended on both, and the case Solaris is
trying to avoid is not really avoided since you can still receive
unicast traffic, or totally unrelated multicast traffic on the shared
port and multicast address space. If the app doesn't use the port to
distinguish it, it simply should bind the multicast address it wants,
use PKTINFO, SO_BINDTODEVICE or the like as well. In your case, multiple
sockets or filtering based on the "to" address are possibilties that
work on Solaris too, and fix more unintended traffic problems than
just a different group.
        A per-socket option is a more trivial way to do this, but
turning it on for sockets that want the existing, intended and
long-standing behavior is obviously wrong.

                                                                +-DLS

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PATCH: Multicast: Filter multicast traffic per socket mc_list, Christoph Lameter, (Thu Apr 16, 7:38 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Thu Apr 16, 8:36 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Thu Apr 16, 8:36 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Thu Apr 16, 8:39 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Thu Apr 16, 12:12 pm)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Thu Apr 16, 2:04 pm)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Stephen Hemminger, (Thu Apr 16, 4:30 pm)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Fri Apr 17, 6:56 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Nivedita Singhvi, (Fri Apr 17, 8:37 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Fri Apr 17, 9:02 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Nivedita Singhvi, (Fri Apr 17, 9:28 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., David Stevens, (Fri Apr 17, 2:31 pm)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Mon Apr 20, 9:43 am)
Re: PATCH: Multicast: Filter multicast traffic per socket ..., Christoph Lameter, (Mon Apr 20, 11:10 am)