]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: New multicast-all socket option
authorNivedita Singhvi <niv@us.ibm.com>
Thu, 28 May 2009 07:00:46 +0000 (07:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2009 07:45:24 +0000 (00:45 -0700)
commit86c2d66e15965e1942b4b1acca4cd501bb4b2a1d
treedf9b7a353a8c28e71a8237d3ad65ba7f41ffab30
parent5a5d123669c4d80ba36527da6da424ce4770c156
ipv4: New multicast-all socket option

After some discussion offline with Christoph Lameter and David Stevens
regarding multicast behaviour in Linux, I'm submitting a slightly
modified patch from the one Christoph submitted earlier.

This patch provides a new socket option IP_MULTICAST_ALL.

In this case, default behaviour is _unchanged_ from the current
Linux standard. The socket option is set by default to provide
original behaviour. Sockets wishing to receive data only from
multicast groups they join explicitly will need to clear this
socket option.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
Signed-off-by: Christoph Lameter<cl@linux.com>
Acked-by: David Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/in.h
include/net/inet_sock.h
net/ipv4/af_inet.c
net/ipv4/igmp.c
net/ipv4/ip_sockglue.c