Lines Matching refs:info

1921     struct resolv_cache_info* info = _find_cache_info_locked(netid);  in _find_named_cache_locked()  local
1923 if (info != NULL) return info->cache; in _find_named_cache_locked()
2120 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() local
2121 if (info != NULL) { in _resolv_populate_res_for_net()
2126 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()
2152 memcpy(statp->defdname, info->defdname, sizeof(statp->defdname)); in _resolv_populate_res_for_net()
2154 register int *p = info->dnsrch_offset; in _resolv_populate_res_for_net()
2196 struct resolv_cache_info* info = _find_cache_info_locked(netid); in android_net_res_stats_get_info_for_net() local
2197 if (info) { in android_net_res_stats_get_info_for_net()
2198 if (info->nscount > MAXNS) { in android_net_res_stats_get_info_for_net()
2200 XLOG("%s: nscount %d > MAXNS %d", __FUNCTION__, info->nscount, MAXNS); in android_net_res_stats_get_info_for_net()
2205 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2210 int addrlen = info->nsaddrinfo[i]->ai_addrlen; in android_net_res_stats_get_info_for_net()
2218 if (info->nsaddrinfo[i]->ai_addr == NULL) { in android_net_res_stats_get_info_for_net()
2224 if (info->nsaddrinfo[i]->ai_next != NULL) { in android_net_res_stats_get_info_for_net()
2231 *nscount = info->nscount; in android_net_res_stats_get_info_for_net()
2232 for (i = 0; i < info->nscount; i++) { in android_net_res_stats_get_info_for_net()
2233 memcpy(&servers[i], info->nsaddrinfo[i]->ai_addr, info->nsaddrinfo[i]->ai_addrlen); in android_net_res_stats_get_info_for_net()
2234 stats[i] = info->nsstats[i]; in android_net_res_stats_get_info_for_net()
2237 const char* cur_domain = info->defdname + info->dnsrch_offset[i]; in android_net_res_stats_get_info_for_net()
2242 if (info->dnsrch_offset[i] < 0 || in android_net_res_stats_get_info_for_net()
2243 ((size_t)info->dnsrch_offset[i]) >= sizeof(info->defdname) || !cur_domain[0]) { in android_net_res_stats_get_info_for_net()
2249 *params = info->params; in android_net_res_stats_get_info_for_net()
2250 revision_id = info->revision_id; in android_net_res_stats_get_info_for_net()
2263 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_get_resolver_stats() local
2264 if (info) { in _resolv_cache_get_resolver_stats()
2265 memcpy(stats, info->nsstats, sizeof(info->nsstats)); in _resolv_cache_get_resolver_stats()
2266 *params = info->params; in _resolv_cache_get_resolver_stats()
2267 revision_id = info->revision_id; in _resolv_cache_get_resolver_stats()
2281 struct resolv_cache_info* info = _find_cache_info_locked(netid); in _resolv_cache_add_resolver_stats_sample() local
2283 if (info && info->revision_id == revision_id) { in _resolv_cache_add_resolver_stats_sample()
2284 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()