Lines Matching refs:info
1970 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _find_named_cache_locked() local
1972 if (info != NULL) return info->cache; in _find_named_cache_locked()
2169 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() local
2170 if (info != NULL) { in _resolv_populate_res_for_net()
2175 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()
2201 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2203 register int *p = info->dnsrch_offset; in _resolv_populate_res_for_net()
2245 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net() local
2246 if (info) { in android_net_res_stats_get_info_for_net()
2247 if (info->nscount > MAXNS) { in android_net_res_stats_get_info_for_net()
2249 XLOG("%s: nscount %d > MAXNS %d", __FUNCTION__, info->nscount, MAXNS); in android_net_res_stats_get_info_for_net()
2254 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2259 int addrlen = info->nsaddrinfo[i]->ai_addrlen; in android_net_res_stats_get_info_for_net()
2267 if (info->nsaddrinfo[i]->ai_addr == NULL) { in android_net_res_stats_get_info_for_net()
2273 if (info->nsaddrinfo[i]->ai_next != NULL) { in android_net_res_stats_get_info_for_net()
2280 *nscount = info->nscount; in android_net_res_stats_get_info_for_net()
2281 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2282 memcpy(&servers[i], info->nsaddrinfo[i]->ai_addr, info->nsaddrinfo[i]->ai_addrlen); in android_net_res_stats_get_info_for_net()
2283 stats[i] = info->nsstats[i]; in android_net_res_stats_get_info_for_net()
2286 const char* cur_domain = info->defdname + info->dnsrch_offset[i]; in android_net_res_stats_get_info_for_net()
2291 if (info->dnsrch_offset[i] < 0 || in android_net_res_stats_get_info_for_net()
2292 ((size_t)info->dnsrch_offset[i]) >= sizeof(info->defdname) || !cur_domain[0]) { in android_net_res_stats_get_info_for_net()
2298 *params = info->params; in android_net_res_stats_get_info_for_net()
2299 revision_id = info->revision_id; in android_net_res_stats_get_info_for_net()
2312 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_get_resolver_stats() local
2313 if (info) { in _resolv_cache_get_resolver_stats()
2314 memcpy(stats, info->nsstats, sizeof(info->nsstats)); in _resolv_cache_get_resolver_stats()
2315 *params = info->params; in _resolv_cache_get_resolver_stats()
2316 revision_id = info->revision_id; in _resolv_cache_get_resolver_stats()
2330 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_add_resolver_stats_sample() local
2332 if (info && info->revision_id == revision_id) { in _resolv_cache_add_resolver_stats_sample()
2333 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()