• Home
  • Raw
  • Download

Lines Matching refs:buflen

146 static int send_vc(res_state statp, res_params* params, const uint8_t* buf, int buflen,
149 static int send_dg(res_state statp, res_params* params, const uint8_t* buf, int buflen,
420 int res_nsend(res_state statp, const uint8_t* buf, int buflen, uint8_t* ans, int anssiz, int* rcode, in res_nsend() argument
430 res_pquery(buf, buflen); in res_nsend()
435 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend()
443 dnsQueryEvent->set_type(getQueryType(buf, buflen)); in res_nsend()
454 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
469 int resplen = res_tls_send(statp, Slice(const_cast<uint8_t*>(buf), buflen), in res_nsend()
475 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
480 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
516 int useTcp = buflen > PACKETSZ; in res_nsend()
546 resplen = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, in res_nsend()
549 if (buflen <= PACKETSZ && resplen <= 0 && in res_nsend()
558 resplen = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, &actualNs, in res_nsend()
579 dnsQueryEvent->set_type(getQueryType(buf, buflen)); in res_nsend()
608 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
617 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
630 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend()
655 static int send_vc(res_state statp, res_params* params, const uint8_t* buf, int buflen, in send_vc() argument
755 uint16_t len = htons(static_cast<uint16_t>(buflen)); in send_vc()
758 {.iov_base = const_cast<uint8_t*>(buf), .iov_len = static_cast<size_t>(buflen)}, in send_vc()
760 if (writev(statp->tcp_nssock, iov, 2) != (INT16SZ + buflen)) { in send_vc()
979 int buflen, uint8_t* ans, int anssiz, int* receivedFromNs) { in ignoreInvalidAnswer() argument
992 if (!res_queriesmatch(buf, buf + buflen, ans, ans + anssiz)) { in ignoreInvalidAnswer()
1000 static int send_dg(res_state statp, res_params* params, const uint8_t* buf, int buflen, in send_dg() argument
1059 if (send(statp->nssocks[*ns], (const char*)buf, (size_t)buflen, 0) != buflen) { in send_dg()
1106 ignoreInvalidAnswer(statp, from, buf, buflen, ans, anssiz, &receivedFromNs); in send_dg()