Lines Matching refs:resplen
469 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, ¶ms, 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, ¶ms, buf, buflen, ans, anssiz, &terrno, &actualNs, in res_nsend()
562 LOG(INFO) << __func__ << ": used send_dg " << resplen << " terrno: " << terrno; in res_nsend()
602 if (resplen == 0) continue; in res_nsend()
607 if (resplen < 0) { in res_nsend()
614 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in res_nsend()
617 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
620 return (resplen); in res_nsend()
795 uint16_t resplen = ntohs(*reinterpret_cast<const uint16_t*>(ans)); in send_vc() local
796 if (resplen > anssiz) { in send_vc()
801 len = resplen; in send_vc()
828 len = resplen - anssiz; in send_vc()
838 LOG(WARNING) << __func__ << ": resplen " << resplen << " exceeds buf size " << anssiz; in send_vc()
840 resplen = anssiz; in send_vc()
851 res_pquery(ans, resplen); in send_vc()
859 if (resplen > 0) { in send_vc()
865 return (resplen); in send_vc()
1089 int resplen = in send_dg() local
1091 if (resplen <= 0) { in send_dg()
1097 if (resplen < HFIXEDSZ) { in send_dg()
1099 LOG(DEBUG) << __func__ << ": undersized: " << resplen; in send_dg()
1108 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in send_dg()
1118 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in send_dg()
1129 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in send_dg()
1147 return resplen; in send_dg()
1209 int resplen = 0; in res_tls_send() local
1256 statp, query, answer, &resplen); in res_tls_send()
1267 return resplen; in res_tls_send()
1283 return resplen; in res_tls_send()