Re: [PATCH] Multicast: Avoid useless duplication of multicast messages

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vlad Yasevich
Date: Wednesday, April 15, 2009 - 10:19 am

Neil Horman wrote:
find the multicast in the socket's list.

Sorry, but I don't buy it.  What we have is essentially "backward-brokeness".

Looking at BSD, which was the root of the original brokeness, they have it fixed.
The code will skip sockets that are not members of a particular group.  So, we
are trying really hard to stay bug-for-bug compatible with old implementations.


Let's look at it the other way.  What is broken if we actually filter based on the
socket group membership?  The only applications that will be impacted are ones that
do not join groups themselves and expect to get multicast traffic.  Such applications
are broken to start with.

We already do group membership check for the socket. We simply incorrectly determine
that any socket that doesn't list a group.

What's worse is that if you have a socket that doesn't care about any mulicast
destinations (never did an ADD_MEMBERSHIP), it will still get multicast traffic if
it bound to that port.

We need to take into account the socket's multicast group list.

-vlad


--
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:
Kernel sends multicast groups to sockets that did not subs ..., Christoph Lameter, (Mon Apr 13, 2:06 pm)
Re: Kernel sends multicast groups to sockets that did not ..., Christoph Lameter, (Tue Apr 14, 6:53 am)
Re: Kernel sends multicast groups to sockets that did not ..., Christoph Lameter, (Tue Apr 14, 11:33 am)
[PATCH] Multicast: Avoid useless duplication of multicast ..., Christoph Lameter, (Tue Apr 14, 11:48 am)
Re: Kernel sends multicast groups to sockets that did not ..., Christoph Lameter, (Tue Apr 14, 1:16 pm)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Christoph Lameter, (Tue Apr 14, 2:45 pm)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Christoph Lameter, (Wed Apr 15, 5:51 am)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Vlad Yasevich, (Wed Apr 15, 10:19 am)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Christoph Lameter, (Wed Apr 15, 12:17 pm)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Christoph Lameter, (Wed Apr 15, 12:21 pm)
Re: [PATCH] Multicast: Avoid useless duplication of multic ..., Christoph Lameter, (Thu Apr 16, 7:45 am)