/packages/modules/DnsResolver/ |
D | ResolverController.cpp | 111 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()
|
D | res_stats.cpp | 147 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()
|
D | stats.h | 49 int android_net_res_stats_get_info_for_net(unsigned netid, int* nscount, 57 int nscount, bool valid_servers[]);
|
D | res_debug.cpp | 243 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()
|
D | resolv_cache_unit_test.cpp | 217 int nscount = -1; in expectCacheStats() local 224 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, ¶ms, 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()
|
D | res_cache.cpp | 705 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()
|
D | res_query.cpp | 173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
|
D | res_send.cpp | 289 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/ |
D | dns_responder.cpp | 329 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()
|
D | dns_responder.h | 111 uint16_t nscount; member 116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 141 nscount = 0
|