Lines Matching refs:ansbuf

88 				      u_char *ansbuf, int anslen,
239 u_char *ansbuf; in get1101byname() local
243 ansbuf = memget(MAXPACKET); in get1101byname()
244 if (ansbuf == NULL) { in get1101byname()
249 anslen = res_nsearch(pvt->res, name, C_IN, T_PTR, ansbuf, MAXPACKET); in get1101byname()
251 memput(ansbuf, MAXPACKET); in get1101byname()
254 result = get1101mask(this, get1101answer(this, ansbuf, anslen, by_name, in get1101byname()
256 memput(ansbuf, MAXPACKET); in get1101byname()
265 u_char *ansbuf; in get1101byaddr() local
275 ansbuf = memget(MAXPACKET); in get1101byaddr()
276 if (ansbuf == NULL) { in get1101byaddr()
281 anslen = res_nquery(pvt->res, qbuf, C_IN, T_PTR, ansbuf, MAXPACKET); in get1101byaddr()
283 memput(ansbuf, MAXPACKET); in get1101byaddr()
286 result = get1101mask(this, get1101answer(this, ansbuf, anslen, by_addr, in get1101byaddr()
288 memput(ansbuf, MAXPACKET); in get1101byaddr()
294 u_char *ansbuf, int anslen, enum by_what by_what, in get1101answer() argument
304 eom = ansbuf + anslen; in get1101answer()
305 if (ansbuf + HFIXEDSZ > eom) { in get1101answer()
309 hp = (HEADER *)ansbuf; in get1101answer()
310 cp = ansbuf + HFIXEDSZ; in get1101answer()
374 int n = dn_expand(ansbuf, eom, cp, bp, ep - bp); in get1101answer()
389 nn = dn_expand(ansbuf, eom, cp, bp, ep - bp); in get1101answer()
445 u_char *ansbuf, *cp, *eom; in get1101mask() local
456 ansbuf = memget(MAXPACKET); in get1101mask()
457 if (ansbuf == NULL) { in get1101mask()
463 anslen = res_nquery(pvt->res, qbuf, C_IN, T_A, ansbuf, MAXPACKET); in get1101mask()
465 memput(ansbuf, MAXPACKET); in get1101mask()
470 hp = (HEADER *)ansbuf; in get1101mask()
471 cp = ansbuf + HFIXEDSZ; in get1101mask()
472 eom = ansbuf + anslen; in get1101mask()
478 memput(ansbuf, MAXPACKET); in get1101mask()
486 int n = dn_expand(ansbuf, eom, cp, owner, sizeof owner); in get1101mask()
514 memput(ansbuf, MAXPACKET); in get1101mask()