Home
last modified time | relevance | path

Searched refs:nscount (Results 1 – 10 of 10) sorted by relevance

/system/netd/resolv/
Dres_stats.cpp148 int nscount, bool usable_servers[]) { in android_net_res_stats_get_usable_servers() argument
150 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers()
160 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers()
164 return (usable_servers_found == 0) ? nscount : usable_servers_found; in android_net_res_stats_get_usable_servers()
Dres_init.cpp153 statp->nscount = 0; in res_vinit()
157 statp->_u._ext.nscount = 0; in res_vinit()
196 statp->nscount = nserv; in res_vinit()
287 for (ns = 0; ns < statp->_u._ext.nscount; ns++) { in res_nclose()
310 statp->_u._ext.nscount = 0; in res_setservers()
344 statp->nscount = nserv; in res_setservers()
352 for (i = 0; i < statp->nscount && i < cnt; i++) { in res_getservers()
383 return (statp->nscount); in res_getservers()
DResolverController.cpp113 int nscount = -1; in getDnsInfo() local
124 netId, &nscount, res_servers, &dcount, res_domains, params, res_stats, in getDnsInfo()
134 if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { in getDnsInfo()
135 LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; in getDnsInfo()
142 android_net_res_stats_get_usable_servers(params, res_stats, nscount, valid_servers); in getDnsInfo()
145 stats->resize(nscount); in getDnsInfo()
146 for (int i = 0; i < nscount; ++i) { in getDnsInfo()
Dres_send.cpp250 static void res_set_usable_server(int selectedServer, int nscount, bool usable_servers[]) { in res_set_usable_server() argument
252 for (int ns = 0; ns < nscount; ns++) { in res_set_usable_server()
275 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
286 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
405 if (statp->nscount == 0) { in res_nsend()
420 if (statp->_u._ext.nscount != 0) { in res_nsend()
425 if (statp->_u._ext.nscount != statp->nscount) { in res_nsend()
428 for (int ns = 0; ns < statp->nscount; ns++) { in res_nsend()
451 statp->_u._ext.nscount = 0; in res_nsend()
458 if (statp->_u._ext.nscount == 0) { in res_nsend()
[all …]
Dresolv_private.h92 int nscount; /* number of name srvers */ member
113 uint16_t nscount; member
Dres_cache.cpp948 int n, nscount; in answer_getNegativeTTL() local
952 nscount = ns_msg_count(handle, ns_s_ns); in answer_getNegativeTTL()
953 for (n = 0; n < nscount; n++) { in answer_getNegativeTTL()
1140 int nscount; member
1604 return (info != nullptr) && (info->nscount > 0); in resolv_has_nameservers()
1773 cache_info->nscount = numservers; in resolv_set_nameservers_for_net()
1829 if (cache_info->nscount != numservers) { in resolv_is_nameservers_equal_locked()
1855 for (i = 0; i < cache_info->nscount; i++) { in free_nameservers_locked()
1864 cache_info->nscount = 0; in free_nameservers_locked()
1901 statp->nscount = nserv; in _resolv_populate_res_for_net()
[all …]
Dres_debug.cpp272 int qdcount, ancount, nscount, arcount; in res_pquery() local
285 nscount = ns_msg_count(handle, ns_s_ns); in res_pquery()
305 p = dbprint(p, end, ", %s: %d", p_section(ns_s_ns, (int)opcode), nscount); in res_pquery()
317 if (qdcount == 0 && ancount == 0 && nscount == 0 && arcount == 0) LOG(VERBOSE) << ";;"; in res_pquery()
Dres_query.cpp173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
/system/netd/resolv/include/netd_resolv/
Dstats.h53 unsigned netid, int* nscount, sockaddr_storage servers[MAXNS], int* dcount,
59 res_stats stats[], int nscount,
/system/netd/resolv/dns_responder/
Ddns_responder.cpp402 uint16_t nscount; member
408 unsigned* nscount, unsigned* arcount);
414 unsigned nscount; in read() local
417 &nscount, &arcount); in read()
442 if (nscount) { in read()
443 authorities.resize(nscount); in read()
444 for (unsigned i = 0 ; i < nscount ; ++i) { in read()
483 header.nscount = htons(authorities.size()); in write()
512 unsigned* nscount, unsigned* arcount) { in readHeader() argument
531 *nscount = ntohs(header.nscount); in readHeader()