OSDN Git Service

Patch from Jari Korva <jpkorva@iki.fi>
authorEric Andersen <andersen@codepoet.org>
Wed, 7 Nov 2001 22:02:57 +0000 (22:02 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 7 Nov 2001 22:02:57 +0000 (22:02 -0000)
commit95d611c31690707350d26a990b5674253bc8dca5
tree3a8a57c7efbd37d670ec4bb66190130f57a8a5a6
parentec59f7c2621e30eb776253e82e620db43c136001
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 ;)
libc/inet/resolv.c