Last active
December 15, 2015 17:38
-
-
Save naaman/5297318 to your computer and use it in GitHub Desktop.
JDK NetworkInterface Linux Patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c 2013-03-04 21:51:01.000000000 +0000 | |
+++ ./openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c 2013-04-02 22:35:56.000000000 +0000 | |
@@ -1127,7 +1127,7 @@ | |
uint8_t ipv6addr[16]; | |
if ((f = fopen(_PATH_PROCNET_IFINET6, "r")) != NULL) { | |
- while (fscanf(f, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %20s\n", | |
+ while (fscanf(f, "%4s%4s%4s%4s%4s%4s%4s%4s %08x %02x %02x %02x %20s\n", | |
addr6p[0], addr6p[1], addr6p[2], addr6p[3], addr6p[4], addr6p[5], addr6p[6], addr6p[7], | |
&if_idx, &plen, &scope, &dad_status, devname) != EOF) { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment