/packages/modules/DnsResolver/ |
D | ResolverController.cpp | 93 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()
|
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 | res_cache.cpp | 721 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()
|
D | res_query.cpp | 173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()
|
D | res_send.cpp | 286 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/ |
D | dns_responder.cpp | 359 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()
|
D | dns_responder.h | 111 uint16_t nscount; member 116 unsigned* ancount, unsigned* nscount, unsigned* arcount);
|
/packages/modules/DnsResolver/tests/ |
D | resolv_cache_unit_test.cpp | 216 int nscount = -1; in expectCacheStats() local 223 android_net_res_stats_get_info_for_net(netId, &nscount, servers, &dcount, domains, ¶ms, 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/ |
D | README.md | 141 nscount = 0
|