9935e0fceeceaa344a9b8ec404ba24c173a13509 |
|
25-Jan-2017 |
Stephen Hines <srhines@google.com> |
Don't mark __res_params or android_net_context as packed. Bug: http://b/31532493 These internal API structures are never actually used anywhere that would change behavior because it is "packed", so it is safe to remove. Test: Builds correctly with the latest toolchain. Change-Id: I5431992d840777605be75ab91dc21158d6d22c26
|
21bf06372742b0524c358502eb692a2245d64dda |
|
17-Apr-2016 |
Pierre Imai <imaipi@google.com> |
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
|
589afca92c2fa026f908ec2c54c0450c438c602c |
|
18-Apr-2016 |
Pierre Imai <imaipi@google.com> |
DO NOT MERGE Store DNS server count in resolv_cache. Instead of keeping a sentinel after nameservers[], nsaddrinfo[] and nstats[], store the server count in the structure, freeing up memory and eliminating the need to enumerate the server count every time _resolv_is_nameservers_equal_locked() is invoked. Also increase MAXNS from 3 to 4. BUG: 28153323 Change-Id: I11a7257af695157c9e32019cd00c67b535b63c75 (cherry picked from commit fff356786f8a3a98c5c29f12bb7e59e6d98076a9)
|
97c9d73a8787e3d8e0a4a4b3445fc5d71f0eb222 |
|
17-Apr-2016 |
Pierre Imai <imaipi@google.com> |
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
|
fff356786f8a3a98c5c29f12bb7e59e6d98076a9 |
|
18-Apr-2016 |
Pierre Imai <imaipi@google.com> |
Store DNS server count in resolv_cache. Instead of keeping a sentinel after nameservers[], nsaddrinfo[] and nstats[], store the server count in the structure, freeing up memory and eliminating the need to enumerate the server count every time _resolv_is_nameservers_equal_locked() is invoked. Also increase MAXNS from 3 to 4. BUG: 28153323 Change-Id: I11a7257af695157c9e32019cd00c67b535b63c75
|
4d8e740b0868b2670599b949ff07d74e5f317114 |
|
22-Feb-2016 |
Pierre Imai <imaipi@google.com> |
DO NOT MERGE: Ignore unreliable DNS servers. Collect statistics about DNS query success state and delay. Ignore servers that have been tried at least five times and have a success rate of < 0.25. Retry these servers once every 180s. Bug: 25731675 (cherry picked from commit 6b3f0d65f2c706625e5efb495df0f2c6178b965a) Change-Id: Id989404b14fd885fb31a5a4de36a4186be1c9ad1
|
6b3f0d65f2c706625e5efb495df0f2c6178b965a |
|
22-Feb-2016 |
Pierre Imai <imaipi@google.com> |
Ignore unreliable DNS servers. Collect statistics about DNS query success state and delay. Ignore servers that have been tried at least five times and have a success rate of < 0.25. Retry these servers once every 180s. Bug: 25731675 Change-Id: I78e24f43e388dca82fb81835e1796f4c7dce8da3
|