Lines Matching refs:hp
163 static void map_v4v6_hostent(struct hostent *hp, char **bp,
227 struct hostent *hp;
233 hp = ho_byname2(this, name, AF_INET6);
234 if (hp)
235 return (hp);
244 struct hostent *hp = NULL;
283 hp = NULL;
316 if ((hp = gethostans(this, p->answer, n, name, p->qtype,
327 return(hp);
336 struct hostent *hp = NULL;
394 hp = NULL;
400 hp = NULL;
428 hp = NULL;
448 hp = NULL;
478 hp = gethostans(this, p->answer, n, p->qname, T_PTR, af, size,
480 if (!hp) {
498 hp = NULL; /*%< H_ERRNO was set by subroutines */
504 return(hp);
703 const HEADER *hp;
745 hp = (const HEADER *)ansbuf;
746 ancount = ntohs(hp->ancount);
747 qdcount = ntohs(hp->qdcount);
1085 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) {
1088 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
1090 hp->h_addrtype = AF_INET6;
1091 hp->h_length = IN6ADDRSZ;
1092 for (ap = hp->h_addr_list; *ap; ap++) {
1132 char *hp;
1138 hp = ap[j];
1140 ap[j+1] = hp;