Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 17 of 17) sorted by relevance

/system/netd/resolv/
Dres_query.cpp119 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()
Dres_send.cpp133 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, &params, 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 …]
Dres_stats.cpp36 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()
Dres_send.h23 uint8_t* ans, int ansLen, int* rcode, uint32_t flags);
Dres_debug.cpp273 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()
Dlibnetd_resolv_test.cpp402 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()
Dgetaddrinfo.cpp1577 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()
Dresolver_test.cpp1749 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 …]
Dresolv_private.h140 void _res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt);
Dres_mkquery.cpp129 hp->rcode = NOERROR; in res_nmkquery()
DDnsProxyListener.cpp243 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()
Dstats.proto191 optional NsRcode rcode = 1; field
/system/netd/resolv/include/netd_resolv/
Dstats.h33 uint8_t rcode; // the DNS rcode or RCODE_XXX defined above member
/system/netd/include/
DNetdClient.h55 int resNetworkResult(int query_fd, int* rcode, uint8_t* answer, size_t anslen);
/system/netd/resolv/dns_responder/
Ddns_responder.h120 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode,
122 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
Ddns_responder.cpp380 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/
DNetdClient.cpp464 extern "C" int resNetworkResult(int fd, int* rcode, uint8_t* answer, size_t anslen) { in resNetworkResult() argument
477 *rcode = result; in resNetworkResult()