Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp239 const uint16_t qlen = (queryHeader[0] << 8) | queryHeader[1]; in handleRequests() local
240 uint8_t query[qlen]; in handleRequests()
242 while (qbytes < qlen) { in handleRequests()
243 int ret = SSL_read(ssl, query + qbytes, qlen - qbytes); in handleRequests()
250 int sent = send(backend_socket_.get(), query, qlen, 0); in handleRequests()
251 if (sent != qlen) { in handleRequests()
Ddns_responder.cpp1093 const uint16_t qlen = (queryMessageLengthField[0] << 8) | queryMessageLengthField[1]; in handleQuery() local
1094 while (len < qlen) { in handleQuery()
1095 ssize_t ret = read(tcpFd.get(), buffer + len, qlen - len); in handleQuery()
/packages/modules/DnsResolver/
Dgethnamaddr.cpp133 size_t qlen; in getanswer() local
369 qlen = aliases.size() * sizeof(*hent->h_aliases); in getanswer()
370 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
372 memcpy(bp, aliases.data(), qlen); in getanswer()
374 bp += qlen; in getanswer()
376 qlen = (n + 1) * sizeof(*hent->h_addr_list); in getanswer()
377 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
379 memcpy(bp, addr_ptrs, qlen); in getanswer()
DDnsTlsTransport.cpp186 const int qlen = std::size(query); in validate() local
191 auto r = transport.query(netdutils::Slice(query, qlen)).get(); in validate()