Lines Matching refs:resplen

472         int resplen = res_tls_send(statp, Slice(const_cast<uint8_t*>(buf), buflen),  in res_nsend()  local
474 if (resplen > 0) { in res_nsend()
476 res_pquery(ans, resplen); in res_nsend()
478 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
480 return resplen; in res_nsend()
540 int resplen; in res_nsend() local
549 resplen = send_vc(statp, &params, buf, buflen, ans, anssiz, &terrno, ns, in res_nsend()
552 if (buflen <= PACKETSZ && resplen <= 0 && in res_nsend()
558 LOG(INFO) << __func__ << ": used send_vc " << resplen << " terrno: " << terrno; in res_nsend()
561 resplen = send_dg(statp, &params, buf, buflen, ans, anssiz, &terrno, &actualNs, in res_nsend()
565 LOG(INFO) << __func__ << ": used send_dg " << resplen << " terrno: " << terrno; in res_nsend()
605 if (resplen == 0) continue; in res_nsend()
610 if (resplen < 0) { in res_nsend()
617 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in res_nsend()
620 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
623 return (resplen); in res_nsend()
798 uint16_t resplen = ntohs(*reinterpret_cast<const uint16_t*>(ans)); in send_vc() local
799 if (resplen > anssiz) { in send_vc()
804 len = resplen; in send_vc()
831 len = resplen - anssiz; in send_vc()
851 res_pquery(ans, (resplen > anssiz) ? anssiz : 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
1255 answer, &resplen); in res_tls_send()
1266 return resplen; in res_tls_send()
1282 return resplen; in res_tls_send()