RFR: JDK-8044306 - java.net.Inet4AddressImpl.getLocalHostName() uses IPv6 rather than IPv4

Mark Sheppard mark.sheppard at oracle.com
Thu Aug 21 16:02:00 UTC 2014


Hi
   please oblige and review the small change
http://cr.openjdk.java.net/~msheppar/8044306/webrev/

to address the issue raised in
https://bugs.openjdk.java.net/browse/JDK-8044306

hints.ai_family is assigned AF_INET rather than AF_UNSPEC
as the native function
Java_java_net_Inet4AddressImpl_getLocalHostName
is part of an IPv4 call flow, such that AF_UNSPEC allows
an IPv6 data to be retrieved as highlighted in bug report

regards
Mark


More information about the net-dev mailing list