Question about getaddrinfo in Inet4AddressImpl.c

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 26 01:30:49 PDT 2011


On 26/10/2011 08:47, Charles Lee wrote:
> But I do not get getaddrinfo is ipv6 specified. Do I miss sth?
If I recall correctly, when the support for IPv6 was added (predates 
OpenJDK as it was jdk1.4, as in 10 years ago) then 
getaddrinfo/getnameinfo/etc. wasn't not widely supported and if I think 
was part of the RFC that defined the socket extensions for IPv6. I don't 
think this code has changed too much since then and probably could do 
with a clean-up. That said, I would be surprised if there are platforms 
that don't have gethostbyname/gethostbyaddr and their reentrant forms. 
I'm curious as to the background to this thread, are you porting to some 
platform that doesn't have the legacy gethostbyname/gethostbyaddr or 
just auditing the use of the system and library calls?

-Alan



More information about the net-dev mailing list