Lines Matching refs:bp
224 char *bp, **ap, **hap, *ep; in getanswer() local
261 bp = buf; in getanswer()
268 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
269 if ((n < 0) || !maybe_ok(res, bp, name_ok)) in getanswer()
278 n = (int)strlen(bp) + 1; /* for the \0 */ in getanswer()
281 hent->h_name = bp; in getanswer()
282 bp += n; in getanswer()
293 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
294 if ((n < 0) || !maybe_ok(res, bp, name_ok)) { in getanswer()
324 addalias(ap, bp, aliases, maxaliases); in getanswer()
325 n = (int)strlen(bp) + 1; /* for the \0 */ in getanswer()
330 bp += n; in getanswer()
333 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
337 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
338 hent->h_name = bp; in getanswer()
339 bp += n; in getanswer()
354 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
358 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
359 tname = bp; in getanswer()
360 bp += n; in getanswer()
374 if (strcasecmp(tname, bp) != 0) { in getanswer()
376 AskedForGot, qname, bp); in getanswer()
380 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
381 if ((n < 0) || !maybe_hnok(res, bp)) { in getanswer()
390 hent->h_name = bp; in getanswer()
392 addalias(ap, bp, aliases, maxaliases); in getanswer()
394 n = (int)strlen(bp) + 1; /* for the \0 */ in getanswer()
399 bp += n; in getanswer()
403 hent->h_name = bp; in getanswer()
405 n = strlen(bp) + 1; /* for the \0 */ in getanswer()
410 bp += n; in getanswer()
411 map_v4v6_hostent(hent, &bp, ep); in getanswer()
417 if (strcasecmp(hent->h_name, bp) != 0) { in getanswer()
419 AskedForGot, hent->h_name, bp); in getanswer()
438 hent->h_name = bp; in getanswer()
439 nn = (int)strlen(bp) + 1; /* for the \0 */ in getanswer()
440 bp += nn; in getanswer()
443 bp += sizeof(align) - in getanswer()
444 (size_t)((u_long)bp % sizeof(align)); in getanswer()
446 if (bp + n >= ep) { in getanswer()
459 (void)memcpy(*hap++ = bp, cp, (size_t)n); in getanswer()
460 bp += n; in getanswer()
483 if (n > ep - bp || n >= MAXHOSTNAMELEN) in getanswer()
485 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
486 hent->h_name = bp; in getanswer()
487 bp += n; in getanswer()
490 map_v4v6_hostent(hent, &bp, ep); in getanswer()
498 bp = (char *)ALIGN(bp); in getanswer()
501 if ((size_t)(ep - bp) < qlen) in getanswer()
503 hent->h_aliases = (void *)bp; in getanswer()
504 memcpy(bp, aliases, qlen); in getanswer()
508 bp += qlen; in getanswer()
511 if ((size_t)(ep - bp) < qlen) in getanswer()
513 hent->h_addr_list = (void *)bp; in getanswer()
514 memcpy(bp, addr_ptrs, qlen); in getanswer()