Home
last modified time | relevance | path

Searched refs:qlen (Results 1 – 3 of 3) sorted by relevance

/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp329 const uint16_t qlen = (queryHeader[0] << 8) | queryHeader[1]; in handleOneRequest() local
330 uint8_t query[qlen]; in handleOneRequest()
332 while (qbytes < qlen) { in handleOneRequest()
333 int ret = SSL_read(ssl, query + qbytes, qlen - qbytes); in handleOneRequest()
340 int sent = send(backend_socket_.get(), query, qlen, 0); in handleOneRequest()
341 if (sent != qlen) { in handleOneRequest()
/system/netd/resolv/
DDnsTlsTransport.cpp176 const int qlen = std::size(query); in validate() local
181 auto r = transport.query(netdutils::Slice(query, qlen)).get(); in validate()
Dgethnamaddr.cpp150 size_t qlen; in getanswer() local
392 qlen = aliases.size() * sizeof(*hent->h_aliases); in getanswer()
393 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
395 memcpy(bp, aliases.data(), qlen); in getanswer()
397 bp += qlen; in getanswer()
399 qlen = (n + 1) * sizeof(*hent->h_addr_list); in getanswer()
400 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
402 memcpy(bp, addr_ptrs, qlen); in getanswer()