Lines Matching refs:buflen
364 const u_char *buf, int buflen, u_char *ans, int anssiz) in res_nsend() argument
385 (stdout, ";; res_send()\n"), buf, buflen); in res_nsend()
386 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend()
396 cache, buf, buflen, in res_nsend()
519 act = (*statp->qhook)(&nsap, &buf, &buflen, in res_nsend()
554 n = send_vc(statp, buf, buflen, ans, anssiz, &terrno, in res_nsend()
573 n = send_dg(statp, buf, buflen, ans, anssiz, &terrno, in res_nsend()
604 _resolv_cache_add(cache, buf, buflen, in res_nsend()
623 act = (*statp->rhook)(nsap, buf, buflen, in res_nsend()
660 _resolv_cache_query_failed(cache, buf, buflen); in res_nsend()
666 _resolv_cache_query_failed(cache, buf, buflen); in res_nsend()
737 const u_char *buf, int buflen, u_char *ans, int anssiz, in send_vc() argument
831 ns_put16((u_short)buflen, (u_char*)(void *)&len); in send_vc()
834 iov[1] = evConsIovec(tmp, (size_t)buflen); in send_vc()
835 if (writev(statp->_vcsock, iov, 2) != (INT16SZ + buflen)) { in send_vc()
1048 const u_char *buf, int buflen, u_char *ans, int anssiz, in send_dg() argument
1123 if (send(s, (const char*)buf, (size_t)buflen, 0) != buflen) { in send_dg()
1129 if (sendto(s, (const char*)buf, buflen, 0, nsap, nsaplen) != buflen) in send_dg()
1226 !res_queriesmatch(buf, buf + buflen, in send_dg()