Eliminate differences between Inet6AddressImpl_getLocalHostName() and Inet4AddressImpl_getLocalHostName()
Bernd Eckenfels
ecki at zusammenkunft.net
Fri Oct 17 00:31:57 UTC 2014
Am Fri, 10 Oct 2014 15:03:32 +0100
schrieb Michael McMahon <michael.x.mcmahon at oracle.com>:
> getnameinfo() with AI_CANONNAME is taking the canonical host name as
> reported directly by the name service. Whereas the additional
> getnameinfo() is doing a reverse lookup of the forward looked up IP
> address.
getaddrinfo() with AI_CANONNAME returns the result in
res[0].ai_canonname which is not used in
http://code.metager.de/source/xref/openjdk/jdk8/jdk/src/solaris/native/java/net/Inet4AddressImpl.c#111
(and other places)
Gruss
Bernd
More information about the net-dev
mailing list