Lines Matching refs:ans
150 uint8_t* ans, int anssiz, int* terrno, size_t ns, time_t* at, int* rcode,
153 uint8_t* ans, int anssiz, int* terrno, size_t* ns, int* v_circuit,
423 int res_nsend(res_state statp, const uint8_t* buf, int buflen, uint8_t* ans, int anssiz, int* rcode, in res_nsend() argument
438 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend()
441 HEADER* hp = (HEADER*)(void*)ans; in res_nsend()
473 Slice(ans, anssiz), rcode, &fallback); in res_nsend()
476 res_pquery(ans, resplen); in res_nsend()
478 resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend()
549 resplen = send_vc(statp, ¶ms, buf, buflen, ans, anssiz, &terrno, ns, in res_nsend()
561 resplen = send_dg(statp, ¶ms, buf, buflen, ans, anssiz, &terrno, &actualNs, 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()
659 uint8_t* ans, int anssiz, int* terrno, size_t ns, time_t* at, int* rcode, in send_vc() argument
664 HEADER* anhp = (HEADER*) (void*) ans; in send_vc()
773 cp = ans; in send_vc()
798 uint16_t resplen = ntohs(*reinterpret_cast<const uint16_t*>(ans)); in send_vc()
814 cp = ans; in send_vc()
851 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in send_vc()
979 int buflen, uint8_t* ans, int anssiz, int* receivedFromNs) { in ignoreInvalidAnswer() argument
981 HEADER* anhp = (HEADER*)(void*)ans; in ignoreInvalidAnswer()
992 if (!res_queriesmatch(buf, buf + buflen, ans, ans + anssiz)) { in ignoreInvalidAnswer()
1001 uint8_t* ans, int anssiz, int* terrno, size_t* ns, int* v_circuit, in send_dg() argument
1090 recvfrom(fd, (char*)ans, (size_t)anssiz, 0, (sockaddr*)(void*)&from, &fromlen); in send_dg()
1106 ignoreInvalidAnswer(statp, from, buf, buflen, ans, anssiz, &receivedFromNs); in send_dg()
1108 res_pquery(ans, (resplen > anssiz) ? anssiz : resplen); in send_dg()
1112 HEADER* anhp = (HEADER*)(void*)ans; 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()
1296 uint8_t* ans, int ansLen, int* rcode, uint32_t flags, in resolv_res_nsend() argument
1303 return res_nsend(&res, msg, msgLen, ans, ansLen, rcode, flags); in resolv_res_nsend()