Re: [PATCH] make ipv4 multicast packets only get delivered to sockets thatare joined to group

From: David Stevens
Date: Wed Sep 13 2006 - 10:32:48 EST


netdev-owner@xxxxxxxxxxxxxxx wrote on 09/13/2006 07:13:55 AM:

> Only
> the socket that is bound to the group address to which the packet was
> sent should get it.

This is not true on any OS I'm aware of, including the
original sockets multicast implementation on early BSD.

Multicast group membership is per-interface, not per-socket.
Joining a group on any socket on the machine allows packets for that
group to be delivered on the interface where it was joined.

Delivery of packets to a socket is determined by the binding, and
INADDR_ANY means "any".

IPv6 behaves the same way.
+-DLS


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/