Lines Matching refs:ep

107 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep,
110 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep);
135 char *bp, **hap, *ep; in getanswer() local
172 ep = buf + buflen; in getanswer()
177 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
198 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
236 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
240 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
255 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
259 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
279 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
329 if (bp + n >= ep) { in getanswer()
355 if (n > ep - bp || n >= MAXHOSTNAMELEN) goto no_recovery; in getanswer()
356 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
360 if (hent->h_addrtype == AF_INET) pad_v4v6_hostent(hent, &bp, ep); in getanswer()
370 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
377 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
615 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep, in convert_v4v6_hostent() argument
620 _DIAGASSERT(ep != NULL); in convert_v4v6_hostent()
627 if (ep - *bpp < (i + NS_IN6ADDRSZ)) { in convert_v4v6_hostent()
640 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep) { in pad_v4v6_hostent() argument
641 convert_v4v6_hostent(hp, bpp, ep, in pad_v4v6_hostent()
687 char qbuf[MAXDNAME + 1], *qp, *ep; in dns_gethtbyaddr() local
702 ep = qbuf + sizeof(qbuf) - 1; in dns_gethtbyaddr()
704 advance = snprintf(qp, (size_t)(ep - qp), "%x.%x.", uaddr[n] & 0xf, in dns_gethtbyaddr()
706 if (advance > 0 && qp + advance < ep) in dns_gethtbyaddr()