OSDN Git Service
Patch from Jari Korva <jpkorva@iki.fi>
I found some support in uClibc for IPv6 but I needed some more...
Enclosed
is the patch containing following modifications:
- getnameinfo port from lates glibc
- IPv6 support for gethostbyaddr()
- IPv6 support for get_hosts_byname and read_etc_hosts (among other
things this fixed a bug in gethostbyname2 in a case when user asked for
an IPv6 but got a v4 address if it was present in /etc/hosts)
- defined ip6addr_any and in6addr_loopback (though the place where I
defined these isn't correct, I guess)
What is still missing:
- getaddrinfo (this could be ported also from glibc but it won't be as
easy as porting getnameinfo, I guess)
I have tested the patch using enclosed test program and boa web server.
Seems to work ;)