Home | History | Annotate | Download | only in netbsd

Lines Matching defs:hp

174 	const HEADER *hp;
207 hp = &answer->hdr;
208 ancount = ntohs(hp->ancount);
209 qdcount = ntohs(hp->qdcount);
465 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen,
476 memcpy(hp, res, sizeof *hp);
477 *result = hp;
484 struct hostent *hp;
493 hp = gethostbyname_internal(name, AF_INET6, res);
494 if (hp) {
496 return hp;
499 hp = gethostbyname_internal(name, AF_INET, res);
501 return hp;
507 struct hostent *hp;
512 hp = gethostbyname_internal(name, af, res);
514 return hp;
523 struct hostent *hp;
629 hp = NULL;
631 if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyname",
636 return hp;
645 struct hostent *hp;
686 hp = NULL;
688 if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyaddr",
692 return hp;
799 struct hostent *hp;
809 hp = NULL;
816 hp = _gethtbyname2(name, AF_INET6);
817 if (hp==NULL)
818 hp = _gethtbyname2(name, AF_INET);
822 hp = _gethtbyname2(name, af);
824 *((struct hostent **)rv) = hp;
825 if (hp == NULL) {
976 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep)
980 assert(hp != NULL);
984 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
986 hp->h_addrtype = AF_INET6;
987 hp->h_length = IN6ADDRSZ;
988 for (ap = hp->h_addr_list; *ap; ap++) {
1030 char *hp;
1036 hp = ap[j];
1038 ap[j+1] = hp;
1061 struct hostent *hp;
1099 hp = getanswer(buf, n, name, type, res);
1102 if (hp == NULL)
1111 *((struct hostent **)rv) = hp;
1122 struct hostent *hp;
1181 hp = getanswer(buf, n, qbuf, T_PTR, res);
1183 if (hp == NULL) {
1194 hp->h_addrtype = af;
1195 hp->h_length = len;
1202 hp->h_addrtype = AF_INET6;
1203 hp->h_length = IN6ADDRSZ;
1207 *((struct hostent **)rv) = hp;