Fix #5504: UdpClient.JoinMulticastGroup().
authorMartin Baulig <martin.baulig@gmail.com>
Thu, 28 Jun 2012 17:43:19 +0000 (19:43 +0200)
committerMartin Baulig <martin.baulig@gmail.com>
Thu, 28 Jun 2012 17:47:43 +0000 (19:47 +0200)
commitb6b41065cbfb47719cedc225d33175148294a1aa
treec948cf83b5a08790d06978eb75a5f30bf5541746
parent591c202ed0d012ca6c3ba70f264b9ea2f4c08722
Fix #5504: UdpClient.JoinMulticastGroup().

* configure.in: Check for if_nametoindex().

* socket-io.c (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
  Mac OS doesn't allow interface = 0; use the interface id from the first
  non-loopback interface.

* UdpClientTest.cs: Enable JoinMulticastGroup1_IPv6,
  JoinMulticastGroup2_IPv6 and JoinMulticastGroup3_IPv6 on the Mac.
configure.in
mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
mono/metadata/socket-io.c