OSDN Git Service

DO NOT MERGE Add new info functions to resolver for use by Netd.
authorPierre Imai <imaipi@google.com>
Mon, 18 Apr 2016 03:00:12 +0000 (12:00 +0900)
committerPierre Imai <imaipi@google.com>
Thu, 21 Apr 2016 05:25:10 +0000 (14:25 +0900)
commit21bf06372742b0524c358502eb692a2245d64dda
tree1da3ce2f3cc6356ea491a619b8341b1c79125522
parent589afca92c2fa026f908ec2c54c0450c438c602c
DO NOT MERGE Add new info functions to resolver for use by Netd.

android_net_res_stats_get_info_for_net returns the current name servers, search
domains, parameters and stats for the given network ID.

android_net_res_stats_aggregate provides statistics such as errors counts from
the raw stats data reported by android_net_res_stats_get_info_for_net.

android_net_res_stats_get_usable_servers uses the data returned by
android_net_res_stats_aggregate to determine which of the servers are
considered valid or broken by the resolver.

BUG: 25731675
Change-Id: I6059b68e5e8b809027a4d3135f6081588bee8a7d
16 files changed:
libc/dns/include/resolv_params.h
libc/dns/include/resolv_private.h
libc/dns/include/resolv_stats.h
libc/dns/resolv/res_cache.c
libc/dns/resolv/res_send.c
libc/dns/resolv/res_stats.c
libc/libc.arm.brillo.map
libc/libc.arm.map
libc/libc.arm64.map
libc/libc.map.txt
libc/libc.mips.brillo.map
libc/libc.mips.map
libc/libc.mips64.map
libc/libc.x86.brillo.map
libc/libc.x86.map
libc/libc.x86_64.map