Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DResolverController.cpp93 int nscount = -1; in getDnsInfo() local
104 netId, &nscount, res_servers, &dcount, res_domains, params, res_stats, in getDnsInfo()
114 if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { in getDnsInfo()
115 LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; in getDnsInfo()
122 android_net_res_stats_get_usable_servers(params, res_stats, nscount, valid_servers); in getDnsInfo()
125 stats->resize(nscount); in getDnsInfo()
126 for (int i = 0; i < nscount; ++i) { in getDnsInfo()
Dres_stats.cpp147 int nscount, bool usable_servers[]) { in android_net_res_stats_get_usable_servers() argument
149 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers()
159 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers()
163 return (usable_servers_found == 0) ? nscount : usable_servers_found; in android_net_res_stats_get_usable_servers()
Dstats.h49 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
57 int nscount, bool valid_servers[]);
Dres_debug.cpp243 int qdcount, ancount, nscount, arcount; in res_pquery() local
255 nscount = ns_msg_count(handle, ns_s_ns); in res_pquery()
275 StringAppendF(&s, ", %s: %d", p_section(ns_s_ns, (int)opcode), nscount); in res_pquery()
Dres_cache.cpp721 int n, nscount; in answer_getNegativeTTL() local
725 nscount = ns_msg_count(handle, ns_s_ns); in answer_getNegativeTTL()
726 for (n = 0; n < nscount; n++) { in answer_getNegativeTTL()
1758 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount, in android_net_res_stats_get_info_for_net() argument
1783 *nscount = num; in android_net_res_stats_get_info_for_net()
Dres_query.cpp173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
Dres_send.cpp286 static void res_set_usable_server(int selectedServer, int nscount, bool usable_servers[]) { in res_set_usable_server() argument
288 for (int ns = 0; ns < nscount; ns++) { in res_set_usable_server()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp359 unsigned nscount; in read() local
361 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read()
386 if (nscount) { in read()
387 authorities.resize(nscount); in read()
388 for (unsigned i = 0; i < nscount; ++i) { in read()
427 header.nscount = htons(authorities.size()); in write()
464 unsigned* ancount, unsigned* nscount, unsigned* arcount) { in readHeader() argument
482 *nscount = ntohs(header.nscount); in readHeader()
Ddns_responder.h111 uint16_t nscount; member
116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp216 int nscount = -1; in expectCacheStats() local
223 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, &params, in expectCacheStats()
227 EXPECT_EQ(nscount, static_cast<int>(expected.setup.servers.size())) << msg; in expectCacheStats()
228 for (int i = 0; i < nscount; i++) { in expectCacheStats()
243 for (int ns = 0; ns < nscount; ns++) { in expectCacheStats()
/packages/modules/DnsResolver/tests/testdata/
DREADME.md141 nscount = 0