summaryrefslogtreecommitdiff
path: root/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2017-12-25 06:25:53 +0000
committerGreg Lewis <glewis@FreeBSD.org>2017-12-25 06:25:53 +0000
commit7f279c7566bc1f160bace602513eca334586c0d2 (patch)
tree72f4a49a0fc090bb0b561d20f51021dd77b8b6dc /java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c
parentThis two ports had to be removed long time ago, as they are not supposed to b... (diff)
. Don't incorrectly set the scopeId of an IPv6 interface on BSD.
This fixes binding sockets for applications running on IPv6. PR: 224079 Submitted by: John W. O'Brien <john@saltant.com>
Notes
Notes: svn path=/head/; revision=457209
Diffstat (limited to 'java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c')
-rw-r--r--java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c b/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c
new file mode 100644
index 000000000000..bc94b2404300
--- /dev/null
+++ b/java/openjdk8/files/patch-jdk-src-solaris-classes-native-java-net-NetworkInterface.c
@@ -0,0 +1,13 @@
+--- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2017-12-24 22:01:27.592305000 -0800
++++ jdk/src/solaris/native/java/net/NetworkInterface.c 2017-12-24 22:06:51.899725000 -0800
+@@ -2075,10 +2075,6 @@
+ if (ifa->ifa_addr == NULL || ifa->ifa_addr->sa_family != AF_INET6)
+ continue;
+
+- // set scope ID to interface index
+- ((struct sockaddr_in6 *)ifa->ifa_addr)->sin6_scope_id =
+- getIndex(sock, ifa->ifa_name);
+-
+ // add interface to the list
+ ifs = addif(env, sock, ifa->ifa_name, ifs, ifa->ifa_addr, NULL,
+ AF_INET6,