Home | History | Annotate | Download | only in dns

Lines Matching defs:hp

185 	const HEADER *hp;
218 hp = &answer->hdr;
219 ancount = ntohs(hp->ancount);
220 qdcount = ntohs(hp->qdcount);
476 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen,
487 memcpy(hp, res, sizeof *hp);
488 *result = hp;
495 struct hostent *hp;
505 hp = gethostbyname_internal(name, AF_INET6, res, NETID_UNSET, MARK_UNSET);
506 if (hp) {
508 return hp;
511 hp = gethostbyname_internal(name, AF_INET, res, NETID_UNSET, MARK_UNSET);
513 return hp;
525 struct hostent *hp;
530 hp = gethostbyname_internal(name, af, res, netid, mark);
532 return hp;
631 struct hostent *hp;
736 hp = NULL;
738 if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyname",
743 return hp;
827 struct hostent *hp;
868 hp = NULL;
870 if (nsdispatch(&hp, dtab, NSDB_HOSTS, "gethostbyaddr",
874 return hp;
1000 struct hostent *hp;
1010 hp = NULL;
1017 hp = _gethtbyname2(name, AF_INET6);
1018 if (hp==NULL)
1019 hp = _gethtbyname2(name, AF_INET);
1023 hp = _gethtbyname2(name, af);
1025 *((struct hostent **)rv) = hp;
1026 if (hp == NULL) {
1177 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep)
1181 assert(hp != NULL);
1185 if (hp->h_addrtype != AF_INET || hp->h_length != INADDRSZ)
1187 hp->h_addrtype = AF_INET6;
1188 hp->h_length = IN6ADDRSZ;
1189 for (ap = hp->h_addr_list; *ap; ap++) {
1231 char *hp;
1237 hp = ap[j];
1239 ap[j+1] = hp;
1262 struct hostent *hp;
1300 hp = getanswer(buf, n, name, type, res);
1303 if (hp == NULL)
1312 *((struct hostent **)rv) = hp;
1323 struct hostent *hp;
1387 hp = getanswer(buf, n, qbuf, T_PTR, res);
1389 if (hp == NULL) {
1400 hp->h_addrtype = af;
1401 hp->h_length = len;
1408 hp->h_addrtype = AF_INET6;
1409 hp->h_length = IN6ADDRSZ;
1413 *((struct hostent **)rv) = hp;