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()
2175 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() local
2176 if (info != NULL) { in _resolv_populate_res_for_net()
2181 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()
2207 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2209 register int *p = info->dnsrch_offset; in _resolv_populate_res_for_net()
2251 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net() local
2252 if (info) { in android_net_res_stats_get_info_for_net()
2253 if (info->nscount > MAXNS) { in android_net_res_stats_get_info_for_net()
2255 XLOG("%s: nscount %d > MAXNS %d", __FUNCTION__, info->nscount, MAXNS); in android_net_res_stats_get_info_for_net()
2260 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2265 int addrlen = info->nsaddrinfo[i]->ai_addrlen; in android_net_res_stats_get_info_for_net()
2273 if (info->nsaddrinfo[i]->ai_addr == NULL) { in android_net_res_stats_get_info_for_net()
2279 if (info->nsaddrinfo[i]->ai_next != NULL) { in android_net_res_stats_get_info_for_net()
2286 *nscount = info->nscount; in android_net_res_stats_get_info_for_net()
2287 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2288 memcpy(&servers[i], info->nsaddrinfo[i]->ai_addr, info->nsaddrinfo[i]->ai_addrlen); in android_net_res_stats_get_info_for_net()
2289 stats[i] = info->nsstats[i]; in android_net_res_stats_get_info_for_net()
2292 const char* cur_domain = info->defdname + info->dnsrch_offset[i]; in android_net_res_stats_get_info_for_net()
2297 if (info->dnsrch_offset[i] < 0 || in android_net_res_stats_get_info_for_net()
2298 ((size_t)info->dnsrch_offset[i]) >= sizeof(info->defdname) || !cur_domain[0]) { in android_net_res_stats_get_info_for_net()
2304 *params = info->params; in android_net_res_stats_get_info_for_net()
2305 revision_id = info->revision_id; in android_net_res_stats_get_info_for_net()
2318 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_get_resolver_stats() local
2319 if (info) { in _resolv_cache_get_resolver_stats()
2320 memcpy(stats, info->nsstats, sizeof(info->nsstats)); in _resolv_cache_get_resolver_stats()
2321 *params = info->params; in _resolv_cache_get_resolver_stats()
2322 revision_id = info->revision_id; in _resolv_cache_get_resolver_stats()
2336 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_add_resolver_stats_sample() local
2338 if (info && info->revision_id == revision_id) { in _resolv_cache_add_resolver_stats_sample()
2339 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()