RFR: 8080819: Inet4AddressImpl regression caused by JDK-7180557

Rob McKenna rob.mckenna at oracle.com
Wed Jun 3 13:25:05 UTC 2015


Hi folks,

7180557 used getifaddrs as a way of determining the local hosts ip 
address on Mac OSX in order to fix a problem with OSX's naming system. 
When fixing this we decided to place that call before the call to 
getaddrinfo thus taking the naming system out of the equation.

Unfortunately when running over VPN we return the wrong ifaddr causing a 
failure.

The solution is to place the getifaddrs call below getaddrinfo and to 
only call it if there is an error with getaddrinfo as there was in the 
original (7180557) case.

http://cr.openjdk.java.net/~robm/8080819/webrev.01/

	-Rob


More information about the net-dev mailing list