Bruce M Simpson 83453a06de Add a new sysctl knob, net.inet.udp.strict_mcast_mship, to the udp_input path.
This switch toggles between strict multicast delivery, and traditional
multicast delivery.

The traditional (default) behaviour is to deliver multicast datagrams to all
sockets which are members of that group, regardless of the network interface
where the datagrams were received.

The strict behaviour is to deliver multicast datagrams received on a
particular interface only to sockets whose membership is bound to that
interface.

Note that as a matter of course, multicast consumers specifying INADDR_ANY
for their interface get joined on the interface where the default route
happens to be bound. This switch has no effect if the interface which the
consumer specifies for IP_ADD_MEMBERSHIP is not UP and RUNNING.

The original patch has been cleaned up somewhat from that submitted. It has
been tested on a multihomed machine with multiple QuickTime RTP streams
running over the local switch, which doesn't do IGMP snooping.

PR:		kern/58359
Submitted by:	William A. Carrel
Reviewed by:	rwatson
MFC after:	1 week
2003-11-12 20:17:11 +00:00
..
2003-10-25 10:57:08 +00:00
2003-10-29 15:07:04 +00:00
2003-10-07 17:46:18 +00:00
2003-11-08 23:09:42 +00:00
2003-10-25 09:37:10 +00:00
2003-10-25 10:57:08 +00:00
2003-11-08 23:09:42 +00:00
2003-10-29 15:07:04 +00:00
2003-10-29 15:07:04 +00:00
2003-06-01 09:20:38 +00:00
2003-09-01 05:12:36 +00:00
2002-10-16 22:27:27 +00:00
2003-08-07 18:16:59 +00:00
2003-10-29 15:07:04 +00:00
2003-08-07 18:17:43 +00:00
2003-08-07 18:17:43 +00:00
2003-11-08 22:53:41 +00:00
2003-11-11 18:16:54 +00:00