Home
last modified time | relevance | path

Searched refs:ans (Results 1 – 5 of 5) sorted by relevance

/system/netd/resolv/
DDnsTlsDispatcher.cpp87 const Slice query, const Slice ans, int *resplen) { in query() argument
94 code = this->query(server, mark, query, ans, resplen); in query()
117 const Slice ans, int *resplen) { in query() argument
138 if (result.response.size() > ans.size()) { in query()
139 ALOGV("Response too large: %zu > %zu", result.response.size(), ans.size()); in query()
144 netdutils::copy(ans, netdutils::makeSlice(result.response)); in query()
Dres_send.cpp376 int res_nsend(res_state statp, const u_char* buf, int buflen, u_char* ans, int anssiz, int* rcode, in res_nsend() argument
394 cache_status = _resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend()
397 HEADER* hp = (HEADER*)(void*)ans; in res_nsend()
540 Slice(ans, anssiz), rcode, &fallback); in res_nsend()
543 _resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
566 n = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, &now, rcode, in res_nsend()
594 n = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, &v_circuit, in res_nsend()
618 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in res_nsend()
621 _resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
707 static int send_vc(res_state statp, res_params* params, const u_char* buf, int buflen, u_char* ans, in send_vc() argument
[all …]
DDnsTlsDispatcher.h52 const netdutils::Slice query, const netdutils::Slice ans,
59 const netdutils::Slice query, const netdutils::Slice ans,
Dres_send.h23 uint8_t* ans, int ansLen, int* rcode, uint32_t flags);
Ddns_tls_test.cpp619 bytevec ans(4096); in TEST_F() local
625 makeSlice(ans), &resplen); in TEST_F()
629 ans.resize(resplen); in TEST_F()
630 EXPECT_EQ(QUERY, ans); in TEST_F()
634 bytevec ans(SIZE - 1); // Too small to hold the answer in TEST_F() local
640 makeSlice(ans), &resplen); in TEST_F()
685 bytevec ans(4096); in TEST_F() local
690 makeSlice(ans), &resplen); in TEST_F()
693 ans.resize(resplen); in TEST_F()
694 EXPECT_EQ(q, ans); in TEST_F()