Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DResolverController.cpp111 int nscount = -1; in getDnsInfo() local
122 netId, &nscount, res_servers, &dcount, res_domains, params, res_stats, in getDnsInfo()
132 if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { in getDnsInfo()
133 LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; in getDnsInfo()
140 android_net_res_stats_get_usable_servers(params, res_stats, nscount, valid_servers); in getDnsInfo()
143 stats->resize(nscount); in getDnsInfo()
144 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()
Dresolv_cache_unit_test.cpp217 int nscount = -1; in expectCacheStats() local
224 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, &params, in expectCacheStats()
228 EXPECT_EQ(nscount, static_cast<int>(expected.setup.servers.size())) << msg; in expectCacheStats()
229 for (int i = 0; i < nscount; i++) { in expectCacheStats()
244 for (int ns = 0; ns < nscount; ns++) { in expectCacheStats()
Dres_cache.cpp705 int n, nscount; in answer_getNegativeTTL() local
709 nscount = ns_msg_count(handle, ns_s_ns); in answer_getNegativeTTL()
710 for (n = 0; n < nscount; n++) { in answer_getNegativeTTL()
1726 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount, in android_net_res_stats_get_info_for_net() argument
1751 *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.cpp289 static void res_set_usable_server(int selectedServer, int nscount, bool usable_servers[]) { in res_set_usable_server() argument
291 for (int ns = 0; ns < nscount; ns++) { in res_set_usable_server()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp329 unsigned nscount; in read() local
331 const char* cur = readHeader(buffer, buffer_end, &qdcount, &ancount, &nscount, &arcount); in read()
356 if (nscount) { in read()
357 authorities.resize(nscount); in read()
358 for (unsigned i = 0; i < nscount; ++i) { in read()
397 header.nscount = htons(authorities.size()); in write()
434 unsigned* ancount, unsigned* nscount, unsigned* arcount) { in readHeader() argument
452 *nscount = ntohs(header.nscount); in readHeader()
Ddns_responder.h111 uint16_t nscount; member
116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
/packages/modules/DnsResolver/tests/testdata/
DREADME.md141 nscount = 0