Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 17 | #define LOG_TAG "ResolverController" |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 18 | |
| 19 | #include "ResolverController.h" |
| 20 | |
| 21 | #include <set> |
| 22 | #include <string> |
| 23 | #include <vector> |
| 24 | |
| 25 | #include <netdb.h> |
| 26 | |
Luke Huang | f4c98f2 | 2019-06-14 01:57:00 +0800 | [diff] [blame] | 27 | #include <Fwmark.h> |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 28 | #include <aidl/android/net/IDnsResolver.h> |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 29 | #include <android-base/logging.h> |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 30 | #include <android-base/strings.h> |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 31 | |
| 32 | #include "Dns64Configuration.h" |
| 33 | #include "DnsResolver.h" |
Bernie Innocenti | 23c6e2a | 2019-05-16 15:18:35 +0900 | [diff] [blame] | 34 | #include "PrivateDnsConfiguration.h" |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 35 | #include "ResolverEventReporter.h" |
| 36 | #include "ResolverStats.h" |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 37 | #include "netd_resolv/stats.h" |
Bernie Innocenti | e71a28a | 2019-05-29 00:42:35 +0900 | [diff] [blame] | 38 | #include "resolv_cache.h" |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 39 | |
| 40 | using namespace std::placeholders; |
waynema | 3725518 | 2019-03-18 13:22:56 +0800 | [diff] [blame] | 41 | using aidl::android::net::ResolverParamsParcel; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 42 | |
| 43 | namespace android { |
| 44 | |
| 45 | using netdutils::DumpWriter; |
| 46 | |
| 47 | namespace net { |
| 48 | |
| 49 | namespace { |
| 50 | |
| 51 | std::string addrToString(const sockaddr_storage* addr) { |
| 52 | char out[INET6_ADDRSTRLEN] = {0}; |
| 53 | getnameinfo((const sockaddr*)addr, sizeof(sockaddr_storage), out, INET6_ADDRSTRLEN, nullptr, 0, |
| 54 | NI_NUMERICHOST); |
| 55 | return std::string(out); |
| 56 | } |
| 57 | |
| 58 | const char* getPrivateDnsModeString(PrivateDnsMode mode) { |
| 59 | switch (mode) { |
| 60 | case PrivateDnsMode::OFF: |
| 61 | return "OFF"; |
| 62 | case PrivateDnsMode::OPPORTUNISTIC: |
| 63 | return "OPPORTUNISTIC"; |
| 64 | case PrivateDnsMode::STRICT: |
| 65 | return "STRICT"; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | constexpr const char* validationStatusToString(Validation value) { |
| 70 | switch (value) { |
| 71 | case Validation::in_process: |
| 72 | return "in_process"; |
| 73 | case Validation::success: |
| 74 | return "success"; |
| 75 | case Validation::fail: |
| 76 | return "fail"; |
| 77 | case Validation::unknown_server: |
| 78 | return "unknown_server"; |
| 79 | case Validation::unknown_netid: |
| 80 | return "unknown_netid"; |
| 81 | default: |
| 82 | return "unknown_status"; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | void sendNat64PrefixEvent(const Dns64Configuration::Nat64PrefixInfo& args) { |
| 87 | const auto& listeners = ResolverEventReporter::getInstance().getListeners(); |
| 88 | if (listeners.size() == 0) { |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 89 | LOG(ERROR) << __func__ << ": No available listener. dropping NAT64 prefix event"; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 90 | return; |
| 91 | } |
| 92 | for (const auto& it : listeners) { |
| 93 | it->onNat64PrefixEvent(args.netId, args.added, args.prefixString, args.prefixLength); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<std::string>* domains, |
| 98 | res_params* params, std::vector<android::net::ResolverStats>* stats, |
| 99 | std::vector<int32_t>* wait_for_pending_req_timeout_count) { |
| 100 | using aidl::android::net::IDnsResolver; |
| 101 | using android::net::ResolverStats; |
| 102 | static_assert(ResolverStats::STATS_SUCCESSES == IDnsResolver::RESOLVER_STATS_SUCCESSES && |
| 103 | ResolverStats::STATS_ERRORS == IDnsResolver::RESOLVER_STATS_ERRORS && |
| 104 | ResolverStats::STATS_TIMEOUTS == IDnsResolver::RESOLVER_STATS_TIMEOUTS && |
| 105 | ResolverStats::STATS_INTERNAL_ERRORS == |
| 106 | IDnsResolver::RESOLVER_STATS_INTERNAL_ERRORS && |
| 107 | ResolverStats::STATS_RTT_AVG == IDnsResolver::RESOLVER_STATS_RTT_AVG && |
| 108 | ResolverStats::STATS_LAST_SAMPLE_TIME == |
| 109 | IDnsResolver::RESOLVER_STATS_LAST_SAMPLE_TIME && |
| 110 | ResolverStats::STATS_USABLE == IDnsResolver::RESOLVER_STATS_USABLE && |
| 111 | ResolverStats::STATS_COUNT == IDnsResolver::RESOLVER_STATS_COUNT, |
| 112 | "AIDL and ResolverStats.h out of sync"); |
| 113 | int nscount = -1; |
| 114 | sockaddr_storage res_servers[MAXNS]; |
| 115 | int dcount = -1; |
| 116 | char res_domains[MAXDNSRCH][MAXDNSRCHPATH]; |
| 117 | res_stats res_stats[MAXNS]; |
| 118 | servers->clear(); |
| 119 | domains->clear(); |
| 120 | *params = res_params{}; |
| 121 | stats->clear(); |
| 122 | int res_wait_for_pending_req_timeout_count; |
| 123 | int revision_id = android_net_res_stats_get_info_for_net( |
| 124 | netId, &nscount, res_servers, &dcount, res_domains, params, res_stats, |
| 125 | &res_wait_for_pending_req_timeout_count); |
| 126 | |
| 127 | // If the netId is unknown (which can happen for valid net IDs for which no DNS servers have |
| 128 | // yet been configured), there is no revision ID. In this case there is no data to return. |
| 129 | if (revision_id < 0) { |
| 130 | return 0; |
| 131 | } |
| 132 | |
| 133 | // Verify that the returned data is sane. |
| 134 | if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 135 | LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 136 | return -ENOTRECOVERABLE; |
| 137 | } |
| 138 | |
| 139 | // Determine which servers are considered usable by the resolver. |
| 140 | bool valid_servers[MAXNS]; |
| 141 | std::fill_n(valid_servers, MAXNS, false); |
| 142 | android_net_res_stats_get_usable_servers(params, res_stats, nscount, valid_servers); |
| 143 | |
| 144 | // Convert the server sockaddr structures to std::string. |
| 145 | stats->resize(nscount); |
| 146 | for (int i = 0; i < nscount; ++i) { |
| 147 | char hbuf[NI_MAXHOST]; |
| 148 | int rv = |
| 149 | getnameinfo(reinterpret_cast<const sockaddr*>(&res_servers[i]), |
| 150 | sizeof(res_servers[i]), hbuf, sizeof(hbuf), nullptr, 0, NI_NUMERICHOST); |
| 151 | std::string server_str; |
| 152 | if (rv == 0) { |
| 153 | server_str.assign(hbuf); |
| 154 | } else { |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 155 | LOG(ERROR) << "getnameinfo() failed for server #" << i << ": " << gai_strerror(rv); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 156 | server_str.assign("<invalid>"); |
| 157 | } |
| 158 | servers->push_back(std::move(server_str)); |
| 159 | android::net::ResolverStats& cur_stats = (*stats)[i]; |
| 160 | android_net_res_stats_aggregate(&res_stats[i], &cur_stats.successes, &cur_stats.errors, |
| 161 | &cur_stats.timeouts, &cur_stats.internal_errors, |
| 162 | &cur_stats.rtt_avg, &cur_stats.last_sample_time); |
| 163 | cur_stats.usable = valid_servers[i]; |
| 164 | } |
| 165 | |
| 166 | // Convert the stack-allocated search domain strings to std::string. |
| 167 | for (int i = 0; i < dcount; ++i) { |
| 168 | domains->push_back(res_domains[i]); |
| 169 | } |
| 170 | |
| 171 | (*wait_for_pending_req_timeout_count)[0] = res_wait_for_pending_req_timeout_count; |
| 172 | return 0; |
| 173 | } |
| 174 | |
| 175 | } // namespace |
| 176 | |
| 177 | ResolverController::ResolverController() |
| 178 | : mDns64Configuration( |
| 179 | [](uint32_t netId, uint32_t uid, android_net_context* netcontext) { |
| 180 | gResNetdCallbacks.get_network_context(netId, uid, netcontext); |
| 181 | }, |
| 182 | std::bind(sendNat64PrefixEvent, _1)) {} |
| 183 | |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 184 | void ResolverController::destroyNetworkCache(unsigned netId) { |
| 185 | LOG(VERBOSE) << __func__ << ": netId = " << netId; |
| 186 | |
Luke Huang | 5bd827c | 2019-03-14 16:10:04 +0800 | [diff] [blame] | 187 | resolv_delete_cache_for_net(netId); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 188 | mDns64Configuration.stopPrefixDiscovery(netId); |
Mike Yu | 88640bd | 2019-04-15 19:49:18 +0800 | [diff] [blame] | 189 | gPrivateDnsConfiguration.clear(netId); |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | int ResolverController::createNetworkCache(unsigned netId) { |
| 193 | LOG(VERBOSE) << __func__ << ": netId = " << netId; |
| 194 | |
| 195 | return resolv_create_cache_for_net(netId); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 196 | } |
| 197 | |
waynema | 0e73c2e | 2019-07-31 15:04:08 +0800 | [diff] [blame] | 198 | int ResolverController::setResolverConfiguration(const ResolverParamsParcel& resolverParams) { |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 199 | using aidl::android::net::IDnsResolver; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 200 | |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 201 | // At private DNS validation time, we only know the netId, so we have to guess/compute the |
| 202 | // corresponding socket mark. |
| 203 | Fwmark fwmark; |
waynema | 3725518 | 2019-03-18 13:22:56 +0800 | [diff] [blame] | 204 | fwmark.netId = resolverParams.netId; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 205 | fwmark.explicitlySelected = true; |
| 206 | fwmark.protectedFromVpn = true; |
| 207 | fwmark.permission = PERMISSION_SYSTEM; |
| 208 | |
Mike Yu | 94626e0 | 2019-04-15 19:45:07 +0800 | [diff] [blame] | 209 | // Allow at most MAXNS private DNS servers in a network to prevent too many broken servers. |
| 210 | std::vector<std::string> tlsServers = resolverParams.tlsServers; |
| 211 | if (tlsServers.size() > MAXNS) { |
| 212 | tlsServers.resize(MAXNS); |
| 213 | } |
waynema | 0e73c2e | 2019-07-31 15:04:08 +0800 | [diff] [blame] | 214 | const int err = |
| 215 | gPrivateDnsConfiguration.set(resolverParams.netId, fwmark.intValue, tlsServers, |
| 216 | resolverParams.tlsName, resolverParams.caCertificate); |
| 217 | |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 218 | if (err != 0) { |
| 219 | return err; |
| 220 | } |
| 221 | |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 222 | res_params res_params = {}; |
waynema | 3725518 | 2019-03-18 13:22:56 +0800 | [diff] [blame] | 223 | res_params.sample_validity = resolverParams.sampleValiditySeconds; |
| 224 | res_params.success_threshold = resolverParams.successThreshold; |
| 225 | res_params.min_samples = resolverParams.minSamples; |
| 226 | res_params.max_samples = resolverParams.maxSamples; |
| 227 | res_params.base_timeout_msec = resolverParams.baseTimeoutMsec; |
| 228 | res_params.retry_count = resolverParams.retryCount; |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 229 | |
Mike Yu | c7649d1 | 2019-05-22 15:28:07 +0800 | [diff] [blame] | 230 | return -resolv_set_nameservers(resolverParams.netId, resolverParams.servers, |
| 231 | resolverParams.domains, res_params); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 232 | } |
| 233 | |
| 234 | int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers, |
| 235 | std::vector<std::string>* domains, |
| 236 | std::vector<std::string>* tlsServers, |
| 237 | std::vector<int32_t>* params, std::vector<int32_t>* stats, |
| 238 | std::vector<int32_t>* wait_for_pending_req_timeout_count) { |
| 239 | using aidl::android::net::IDnsResolver; |
| 240 | using android::net::ResolverStats; |
| 241 | res_params res_params; |
| 242 | std::vector<ResolverStats> res_stats; |
| 243 | int ret = getDnsInfo(netId, servers, domains, &res_params, &res_stats, |
| 244 | wait_for_pending_req_timeout_count); |
| 245 | if (ret != 0) { |
| 246 | return ret; |
| 247 | } |
| 248 | |
| 249 | // Serialize the information for binder. |
| 250 | ResolverStats::encodeAll(res_stats, stats); |
| 251 | |
Mike Yu | 3e82906 | 2019-08-07 14:01:14 +0800 | [diff] [blame] | 252 | const auto privateDnsStatus = gPrivateDnsConfiguration.getStatus(netId); |
| 253 | for (const auto& pair : privateDnsStatus.serversMap) { |
| 254 | tlsServers->push_back(addrToString(&pair.first.ss)); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 255 | } |
| 256 | |
| 257 | params->resize(IDnsResolver::RESOLVER_PARAMS_COUNT); |
| 258 | (*params)[IDnsResolver::RESOLVER_PARAMS_SAMPLE_VALIDITY] = res_params.sample_validity; |
| 259 | (*params)[IDnsResolver::RESOLVER_PARAMS_SUCCESS_THRESHOLD] = res_params.success_threshold; |
| 260 | (*params)[IDnsResolver::RESOLVER_PARAMS_MIN_SAMPLES] = res_params.min_samples; |
| 261 | (*params)[IDnsResolver::RESOLVER_PARAMS_MAX_SAMPLES] = res_params.max_samples; |
| 262 | (*params)[IDnsResolver::RESOLVER_PARAMS_BASE_TIMEOUT_MSEC] = res_params.base_timeout_msec; |
| 263 | (*params)[IDnsResolver::RESOLVER_PARAMS_RETRY_COUNT] = res_params.retry_count; |
| 264 | return 0; |
| 265 | } |
| 266 | |
| 267 | void ResolverController::startPrefix64Discovery(int32_t netId) { |
| 268 | mDns64Configuration.startPrefixDiscovery(netId); |
| 269 | } |
| 270 | |
| 271 | void ResolverController::stopPrefix64Discovery(int32_t netId) { |
| 272 | return mDns64Configuration.stopPrefixDiscovery(netId); |
| 273 | } |
| 274 | |
| 275 | // TODO: use StatusOr<T> to wrap the result. |
| 276 | int ResolverController::getPrefix64(unsigned netId, netdutils::IPPrefix* prefix) { |
| 277 | netdutils::IPPrefix p = mDns64Configuration.getPrefix64(netId); |
| 278 | if (p.family() != AF_INET6 || p.length() == 0) { |
Luke Huang | 9b80e6c | 2019-04-09 17:54:09 +0800 | [diff] [blame] | 279 | LOG(ERROR) << "No valid NAT64 prefix (" << netId << ", " << p.toString().c_str() << ")"; |
| 280 | |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 281 | return -ENOENT; |
| 282 | } |
| 283 | *prefix = p; |
| 284 | return 0; |
| 285 | } |
| 286 | |
| 287 | void ResolverController::dump(DumpWriter& dw, unsigned netId) { |
| 288 | // No lock needed since Bionic's resolver locks all accessed data structures internally. |
| 289 | using android::net::ResolverStats; |
| 290 | std::vector<std::string> servers; |
| 291 | std::vector<std::string> domains; |
| 292 | res_params params = {}; |
| 293 | std::vector<ResolverStats> stats; |
| 294 | std::vector<int32_t> wait_for_pending_req_timeout_count(1, 0); |
| 295 | time_t now = time(nullptr); |
| 296 | int rv = getDnsInfo(netId, &servers, &domains, ¶ms, &stats, |
| 297 | &wait_for_pending_req_timeout_count); |
| 298 | dw.incIndent(); |
| 299 | if (rv != 0) { |
| 300 | dw.println("getDnsInfo() failed for netid %u", netId); |
| 301 | } else { |
| 302 | if (servers.empty()) { |
| 303 | dw.println("No DNS servers defined"); |
| 304 | } else { |
Luke Huang | e126fbe | 2019-07-20 17:36:30 +0800 | [diff] [blame] | 305 | dw.println("DnsEvent subsampling map: " + |
| 306 | android::base::Join(resolv_cache_dump_subsampling_map(netId), ' ')); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 307 | dw.println( |
| 308 | "DNS servers: # IP (total, successes, errors, timeouts, internal errors, " |
| 309 | "RTT avg, last sample)"); |
| 310 | dw.incIndent(); |
| 311 | for (size_t i = 0; i < servers.size(); ++i) { |
| 312 | if (i < stats.size()) { |
| 313 | const ResolverStats& s = stats[i]; |
| 314 | int total = s.successes + s.errors + s.timeouts + s.internal_errors; |
| 315 | if (total > 0) { |
| 316 | int time_delta = (s.last_sample_time > 0) ? now - s.last_sample_time : -1; |
| 317 | dw.println("%s (%d, %d, %d, %d, %d, %dms, %ds)%s", servers[i].c_str(), |
| 318 | total, s.successes, s.errors, s.timeouts, s.internal_errors, |
| 319 | s.rtt_avg, time_delta, s.usable ? "" : " BROKEN"); |
| 320 | } else { |
| 321 | dw.println("%s <no data>", servers[i].c_str()); |
| 322 | } |
| 323 | } else { |
| 324 | dw.println("%s <no stats>", servers[i].c_str()); |
| 325 | } |
| 326 | } |
| 327 | dw.decIndent(); |
| 328 | } |
| 329 | if (domains.empty()) { |
| 330 | dw.println("No search domains defined"); |
| 331 | } else { |
| 332 | std::string domains_str = android::base::Join(domains, ", "); |
| 333 | dw.println("search domains: %s", domains_str.c_str()); |
| 334 | } |
| 335 | if (params.sample_validity != 0) { |
| 336 | dw.println( |
| 337 | "DNS parameters: sample validity = %us, success threshold = %u%%, " |
| 338 | "samples (min, max) = (%u, %u), base_timeout = %dmsec, retry count = " |
| 339 | "%dtimes", |
| 340 | params.sample_validity, params.success_threshold, params.min_samples, |
| 341 | params.max_samples, params.base_timeout_msec, params.retry_count); |
| 342 | } |
| 343 | |
| 344 | mDns64Configuration.dump(dw, netId); |
Mike Yu | 3e82906 | 2019-08-07 14:01:14 +0800 | [diff] [blame] | 345 | const auto privateDnsStatus = gPrivateDnsConfiguration.getStatus(netId); |
lifr | 9498178 | 2019-05-17 21:15:19 +0800 | [diff] [blame] | 346 | dw.println("Private DNS mode: %s", getPrivateDnsModeString(privateDnsStatus.mode)); |
Mike Yu | 3e82906 | 2019-08-07 14:01:14 +0800 | [diff] [blame] | 347 | if (privateDnsStatus.serversMap.size() == 0) { |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 348 | dw.println("No Private DNS servers configured"); |
| 349 | } else { |
Mike Yu | 3e82906 | 2019-08-07 14:01:14 +0800 | [diff] [blame] | 350 | dw.println("Private DNS configuration (%u entries)", |
| 351 | static_cast<uint32_t>(privateDnsStatus.serversMap.size())); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 352 | dw.incIndent(); |
Mike Yu | 3e82906 | 2019-08-07 14:01:14 +0800 | [diff] [blame] | 353 | for (const auto& pair : privateDnsStatus.serversMap) { |
| 354 | dw.println("%s name{%s} status{%s}", addrToString(&pair.first.ss).c_str(), |
| 355 | pair.first.name.c_str(), validationStatusToString(pair.second)); |
Luke Huang | 7b26b20 | 2019-03-28 14:09:24 +0800 | [diff] [blame] | 356 | } |
| 357 | dw.decIndent(); |
| 358 | } |
| 359 | dw.println("Concurrent DNS query timeout: %d", wait_for_pending_req_timeout_count[0]); |
| 360 | } |
| 361 | dw.decIndent(); |
| 362 | } |
| 363 | |
| 364 | } // namespace net |
| 365 | } // namespace android |