OSDN Git Service

More multicast fixes.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 1 Oct 2009 00:51:26 +0000 (17:51 -0700)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 1 Oct 2009 00:51:26 +0000 (17:51 -0700)
commitf94c5d77ab659bfc1644b524fc006f24cbf6f694
tree06458dcc6fb15be493fe81d99555efe0a72cff81
parente851c562ee5eb514135b5066553fcef6b0e5c333
More multicast fixes.

1. Make native code properly set network interface indexes that are used for
   new-style multicast socket options.
2. For IP_MULTICAST_IF, check that the address is IPv4, not the socket.
3. Remove a @KnownFailure annotation for a test that now passes.

This removes one test error and changes it into a more benign failure. The
remaining test failures seem to be due to Linux bening permissive about which
interfaces you can receive multicast traffic on, which is probably good enough
for now.

Change-Id: Id1fddee338addcfce821672b983485c7dd4983d4
libcore/luni/src/main/native/java_net_NetworkInterface.c
libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp
libcore/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java