Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dres_send.cpp469 int resplen = res_tls_send(statp, Slice(const_cast<uint8_t*>(buf), buflen), in res_nsend() local
471 if (resplen > 0) { in res_nsend()
473 res_pquery(ans, resplen); in res_nsend()
475 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
477 return resplen; in res_nsend()
537 int resplen; in res_nsend() local
546 resplen = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, in res_nsend()
549 if (buflen <= PACKETSZ && resplen <= 0 && in res_nsend()
555 LOG(INFO) << __func__ << ": used send_vc " << resplen << " terrno: " << terrno; in res_nsend()
558 resplen = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, &actualNs, in res_nsend()
[all …]
DDnsTlsDispatcher.cpp110 const Slice ans, int* resplen) { in query() argument
124 code = this->query(server, statp->netid, statp->_mark, query, ans, resplen, in query()
166 int* resplen, bool* connectTriggered) { in query() argument
195 *resplen = result.response.size(); in query()
DDnsTlsTransport.cpp135 const int resplen = recv(fd, buf.data(), buf.size(), 0); in sendUdpQuery() local
137 if (resplen < 0) { in sendUdpQuery()
141 buf.resize(resplen); in sendUdpQuery()
DDnsTlsDispatcher.h55 const netdutils::Slice ans, int* _Nonnull resplen);
63 int* _Nonnull resplen, bool* _Nonnull connectTriggered);
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp686 int resplen = 0; in TEST_F() local
691 auto r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
695 EXPECT_EQ(int(QUERY.size()), resplen); in TEST_F()
697 ans.resize(resplen); in TEST_F()
701 r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
709 int resplen = 0; in TEST_F() local
714 auto r = dispatcher.query(SERVER1, NETID, MARK, makeSlice(QUERY), makeSlice(ans), &resplen, in TEST_F()
762 int resplen = 0; in TEST_F() local
767 auto r = dispatcher->query(server, netId, mark, makeSlice(q), makeSlice(ans), &resplen, in TEST_F()
770 EXPECT_EQ(int(q.size()), resplen); in TEST_F()
[all …]