OSDN Git Service

bionic: Replace iface with opaque netid in resolver.
authorSzymon Jakubczak <szym@google.com>
Fri, 14 Feb 2014 22:07:23 +0000 (17:07 -0500)
committerPaul Jensen <pauljensen@google.com>
Tue, 1 Apr 2014 20:25:49 +0000 (16:25 -0400)
commitea9bf6788144b83cc51c454b2bfe6b980d6e947c
treeeb73d23bcba8dcc1f2d88b76bfd1afa1be2d639b
parentbc475bc8d1d202baa48f6c9829fe1cced9122332
bionic: Replace iface with opaque netid in resolver.

Replace iface cache key with netid.

Replace _mark with netid.

Mark sockets used to test IPv4/IPv6 support as well as sockets
used to determine source address for rfc6724 sort.

Remove pid/uid mappings (functionality moved to system/netd).

Do not create resolv_cache when it does not exist, but rather only
when DNS configuration is supplied.

Clean up unused functions.

Change-Id: I9ccfda2902cc0943e87c9bc346ad9a2578accdab
13 files changed:
libc/dns/gethnamaddr.c
libc/dns/include/resolv_cache.h
libc/dns/include/resolv_iface.h [deleted file]
libc/dns/include/resolv_netid.h [new file with mode: 0644]
libc/dns/include/resolv_private.h
libc/dns/net/getaddrinfo.c
libc/dns/net/getnameinfo.c
libc/dns/resolv/res_cache.c
libc/dns/resolv/res_init.c
libc/dns/resolv/res_query.c
libc/dns/resolv/res_send.c
libc/dns/resolv/res_state.c
libc/include/netdb.h