Home
last modified time | relevance | path

Searched refs:resplen (Results 1 – 4 of 4) sorted by relevance

/packages/modules/DnsResolver/
Dres_send.cpp472 int resplen = res_tls_send(statp, Slice(const_cast<uint8_t*>(buf), buflen), in res_nsend() local
474 if (resplen > 0) { in res_nsend()
476 res_pquery(ans, resplen); in res_nsend()
478 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
480 return resplen; in res_nsend()
540 int resplen; in res_nsend() local
549 resplen = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, in res_nsend()
552 if (buflen <= PACKETSZ && resplen <= 0 && in res_nsend()
558 LOG(INFO) << __func__ << ": used send_vc " << resplen << " terrno: " << terrno; in res_nsend()
561 resplen = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, &actualNs, in res_nsend()
[all …]
DDnsTlsDispatcher.cpp94 const Slice ans, int* resplen) { in query() argument
107 code = this->query(server, statp->_mark, query, ans, resplen, &connectTriggered); in query()
147 const Slice query, const Slice ans, int* resplen, in query() argument
184 *resplen = result.response.size(); in query()
Dresolv_tls_unit_test.cpp659 int resplen = 0; in TEST_F() local
664 auto r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
668 EXPECT_EQ(int(QUERY.size()), resplen); in TEST_F()
670 ans.resize(resplen); in TEST_F()
674 r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
682 int resplen = 0; in TEST_F() local
687 auto r = dispatcher.query(SERVER1, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
735 int resplen = 0; in TEST_F() local
739 auto r = dispatcher->query(server, mark, makeSlice(q), makeSlice(ans), &resplen, in TEST_F()
742 EXPECT_EQ(int(q.size()), resplen); in TEST_F()
[all …]
DDnsTlsDispatcher.h54 const netdutils::Slice ans, int* _Nonnull resplen);
62 int* _Nonnull resplen, bool* _Nonnull connectTriggered);