/system/netd/resolv/ |
D | res_query.cpp | 119 int rcode = NOERROR; in res_nquery() local 123 hp->rcode = NOERROR; /* default */ in res_nquery() 135 n = res_nsend(statp, buf, n, answer, anslen, &rcode, 0); in res_nquery() 159 switch (rcode) { in res_nquery() 171 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery() 172 LOG(DEBUG) << __func__ << ": rcode = (" << p_rcode(hp->rcode) in res_nquery() 176 switch (hp->rcode) { in res_nquery() 294 if (hp->rcode == SERVFAIL) { in res_nsearch()
|
D | res_send.cpp | 133 static int res_tls_send(res_state, const Slice query, const Slice answer, int* rcode, 376 int res_nsend(res_state statp, const u_char* buf, int buflen, u_char* ans, int anssiz, int* rcode, in res_nsend() argument 398 *rcode = hp->rcode; in res_nsend() 529 *rcode = RCODE_INTERNAL_ERROR; in res_nsend() 540 Slice(ans, anssiz), rcode, &fallback); in res_nsend() 566 n = send_vc(statp, ¶ms, buf, buflen, ans, anssiz, &terrno, ns, &now, rcode, in res_nsend() 576 _res_stats_set_sample(&sample, now, *rcode, delay); in res_nsend() 595 &gotsomewhere, &now, rcode, &delay); in res_nsend() 600 _res_stats_set_sample(&sample, now, *rcode, delay); in res_nsend() 708 int anssiz, int* terrno, int ns, time_t* at, int* rcode, int* delay) { in send_vc() argument [all …]
|
D | res_stats.cpp | 36 void _res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt) { in _res_stats_set_sample() argument 37 LOG(INFO) << __func__ << ": rcode = " << rcode << ", sec = " << rtt; in _res_stats_set_sample() 39 sample->rcode = rcode; in _res_stats_set_sample() 66 switch (stats->samples[i].rcode) { in android_net_res_stats_aggregate()
|
D | res_send.h | 23 uint8_t* ans, int ansLen, int* rcode, uint32_t flags);
|
D | res_debug.cpp | 273 u_int opcode, rcode, id; in res_pquery() local 281 rcode = ns_msg_getflag(handle, ns_f_rcode); in res_pquery() 292 p_rcode((int)rcode), id); in res_pquery() 506 const char* p_rcode(int rcode) { in p_rcode() argument 507 return (sym_ntos(p_rcode_syms, rcode, (int*) 0)); in p_rcode()
|
D | libnetd_resolv_test.cpp | 402 ns_rcode rcode; in TEST_F() member 418 SCOPED_TRACE(StringPrintf("rcode: %d", config.rcode)); in TEST_F() 421 config.rcode /*response specific rcode*/); in TEST_F() 527 ns_rcode rcode; in TEST_F() member 545 SCOPED_TRACE(StringPrintf("rcode: %d", config.rcode)); in TEST_F() 548 config.rcode /*response specific rcode*/); in TEST_F()
|
D | getaddrinfo.cpp | 1577 int rcode; in res_queryN() local 1583 rcode = NOERROR; in res_queryN() 1593 hp->rcode = NOERROR; /* default */ in res_queryN() 1612 n = res_nsend(res, buf, n, answer, anslen, &rcode, 0); in res_queryN() 1613 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN() 1616 if (rcode != RCODE_TIMEOUT) rcode = hp->rcode; /* record most recent error */ in res_queryN() 1624 LOG(DEBUG) << __func__ << ": rcode=" << hp->rcode << ", ancount=" << ntohs(hp->ancount); in res_queryN() 1634 switch (rcode) { in res_queryN() 1745 if (hp->rcode == SERVFAIL) { in res_searchN()
|
D | resolver_test.cpp | 1749 int getAsyncResponse(int fd, int* rcode, uint8_t* buf, int bufLen) { in getAsyncResponse() argument 1759 int n = resNetworkResult(fd, rcode, buf, bufLen); in getAsyncResponse() 1810 int rcode = -1; in expectAnswersValid() local 1813 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersValid() 1819 int rcode = -1; in expectAnswersNotValid() local 1822 int res = getAsyncResponse(fd, &rcode, buf, MAXPACKET); in expectAnswersNotValid() 1847 int rcode; in TEST_F() local 1848 int res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F() 1852 res = getAsyncResponse(fd1, &rcode, buf, MAXPACKET); in TEST_F() 1865 res = getAsyncResponse(fd2, &rcode, buf, MAXPACKET); in TEST_F() [all …]
|
D | resolv_private.h | 140 void _res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt);
|
D | res_mkquery.cpp | 129 hp->rcode = NOERROR; in res_nmkquery()
|
D | DnsProxyListener.cpp | 243 int rcodeToAiError(int rcode) { in rcodeToAiError() argument 244 switch (rcode) { in rcodeToAiError() 254 int resNSendToAiError(int err, int rcode) { in resNSendToAiError() argument 256 return rcodeToAiError(rcode); in resNSendToAiError()
|
D | stats.proto | 191 optional NsRcode rcode = 1; field
|
/system/netd/resolv/include/netd_resolv/ |
D | stats.h | 33 uint8_t rcode; // the DNS rcode or RCODE_XXX defined above member
|
/system/netd/include/ |
D | NetdClient.h | 55 int resNetworkResult(int query_fd, int* rcode, uint8_t* answer, size_t anslen);
|
/system/netd/resolv/dns_responder/ |
D | dns_responder.h | 120 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode, 122 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
|
D | dns_responder.cpp | 380 uint8_t rcode; member 479 header.flags1 = (ad << 5) | rcode; in write() 527 rcode = header.flags1 & 0xF; in readHeader() 902 bool DNSResponder::makeErrorResponse(DNSHeader* header, ns_rcode rcode, in makeErrorResponse() argument 908 header->rcode = rcode; in makeErrorResponse()
|
/system/netd/client/ |
D | NetdClient.cpp | 464 extern "C" int resNetworkResult(int fd, int* rcode, uint8_t* answer, size_t anslen) { in resNetworkResult() argument 477 *rcode = result; in resNetworkResult()
|