diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-27 08:17:05 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-27 08:17:05 +0000 |
commit | b455972fdaf438fec1ee1467fee5d29ee5569333 (patch) | |
tree | ffd9da46c9e37ffb1e14d7abd81b82854b4e11f3 /resolv/ns_name.c | |
parent | 9c42c64d305549cc74dd10739d1fc5de813abe31 (diff) | |
download | glibc-b455972fdaf438fec1ee1467fee5d29ee5569333.tar glibc-b455972fdaf438fec1ee1467fee5d29ee5569333.tar.gz glibc-b455972fdaf438fec1ee1467fee5d29ee5569333.tar.bz2 glibc-b455972fdaf438fec1ee1467fee5d29ee5569333.zip |
Update.
2000-05-27 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
* nss/nss_files/files-hosts.c (LINE_PARSER): Simplify. Correct
handling of AI_V4MAPPED flag.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
perform lookup for T_A type and tell getanswer_r to convert the
result with new argument.
(_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
Don't convert addresses from IPv4 to IPv6 here.
(getanswer_r): Take new parameter indicating if mapping from IPv4 to
IPv6 is wanted. Allow qtype and type from reply to disagree if
IPv4 mapping has to be done. Perform mappings if required by the
caller and not if RES_USE_INET6 bit in _res.options is set.
Add several __builtin_expect.
Diffstat (limited to 'resolv/ns_name.c')
0 files changed, 0 insertions, 0 deletions