OSDN Git Service

Use RFC3493-conformant IPv6 headers.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 12 Jun 2009 02:35:46 +0000 (19:35 -0700)
committerLorenzo Colitti <lorenzo@google.com>
Wed, 17 Jun 2009 21:39:14 +0000 (14:39 -0700)
libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp

index 1167cee..e105f5c 100644 (file)
 #include <stdio.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
-// Temporary hack to fix the sim build until bionic is updated.
-#ifdef HAVE_ANDROID_OS
-#include <netinet/in6.h>
-#else
-#define ipv6mr_ifindex ipv6mr_interface
-#endif
 #include <netinet/tcp.h>
 #include <netdb.h>
 #include <sys/time.h>
@@ -1368,7 +1362,7 @@ static void mcastAddDropMembership (JNIEnv * env, int handle, jobject optVal,
                 memset(&ipv6Request, 0, requestLength);
                 ipv6Request.ipv6mr_multiaddr =
                         ((struct sockaddr_in6 *) &sockaddrP)->sin6_addr;
-                ipv6Request.ipv6mr_ifindex = interfaceIndex;
+                ipv6Request.ipv6mr_interface = interfaceIndex;
                 multicastRequest = &ipv6Request;
                 level = IPPROTO_IPV6;
                 break;