Lines Matching refs:bp
151 char *bp, *ep, **ap, **hap;
180 bp = hed->hostbuf;
188 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
189 if ((n < 0) || !(*name_ok)(bp)) {
199 n = strlen(bp) + 1; /* for the \0 */
204 he->h_name = bp;
205 bp += n;
219 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
220 if ((n < 0) || !(*name_ok)(bp)) {
256 *ap++ = bp;
257 n = strlen(bp) + 1; /* for the \0 */
262 bp += n;
265 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
269 strcpy(bp, tbuf);
270 he->h_name = bp;
271 bp += n;
287 if (n > ep - bp || n >= MAXHOSTNAMELEN) {
291 strcpy(bp, tbuf);
292 tname = bp;
293 bp += n;
307 if (strcasecmp(tname, bp) != 0) {
309 AskedForGot, qname, bp);
313 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
314 if ((n < 0) || !res_hnok(bp)) {
325 he->h_name = bp;
327 *ap++ = bp;
331 n = strlen(bp) + 1; /* for the \0 */
336 bp += n;
340 he->h_name = bp;
342 n = strlen(bp) + 1; /* for the \0 */
347 bp += n;
348 _map_v4v6_hostent(he, &bp, ep);
355 if (strcasecmp(he->h_name, bp) != 0) {
357 AskedForGot, he->h_name, bp);
368 he->h_name = bp;
369 nn = strlen(bp) + 1; /* for the \0 */
370 bp += nn;
373 bp += sizeof(align) - ((u_long)bp % sizeof(align));
375 if (bp + n >= ep) {
387 memcpy(*hap++ = bp, cp, n);
388 bp += n;
419 if (n > ep - bp || n >= MAXHOSTNAMELEN)
421 strcpy(bp, qname);
422 he->h_name = bp;
423 bp += n;
426 _map_v4v6_hostent(he, &bp, ep);