• Home
  • Raw
  • Download

Lines Matching refs:ep

110 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep,
115 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep);
152 char *bp, **hap, *ep; in getanswer() local
188 ep = buf + buflen; in getanswer()
193 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
214 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
252 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
256 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
271 if (n > ep - bp || n >= MAXHOSTNAMELEN) { in getanswer()
275 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
295 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
345 if (bp + n >= ep) { in getanswer()
377 if (n > ep - bp || n >= MAXHOSTNAMELEN) goto no_recovery; in getanswer()
378 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
382 if (res->options & RES_USE_INET6) map_v4v6_hostent(hent, &bp, ep); in getanswer()
383 if (hent->h_addrtype == AF_INET) pad_v4v6_hostent(hent, &bp, ep); in getanswer()
393 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
400 if ((size_t)(ep - bp) < qlen) goto nospc; in getanswer()
678 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep, in convert_v4v6_hostent() argument
683 _DIAGASSERT(ep != NULL); in convert_v4v6_hostent()
690 if (ep - *bpp < (i + NS_IN6ADDRSZ)) { in convert_v4v6_hostent()
702 static void map_v4v6_hostent(struct hostent* hp, char** bpp, char* ep) { in map_v4v6_hostent() argument
703 convert_v4v6_hostent(hp, bpp, ep, in map_v4v6_hostent()
712 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep) { in pad_v4v6_hostent() argument
713 convert_v4v6_hostent(hp, bpp, ep, in pad_v4v6_hostent()
799 char qbuf[MAXDNAME + 1], *qp, *ep; in dns_gethtbyaddr() local
814 ep = qbuf + sizeof(qbuf) - 1; in dns_gethtbyaddr()
816 advance = snprintf(qp, (size_t)(ep - qp), "%x.%x.", uaddr[n] & 0xf, in dns_gethtbyaddr()
818 if (advance > 0 && qp + advance < ep) in dns_gethtbyaddr()