Lines Matching refs:hp
496 struct hostent *hp;
504 hp = getipnodebyaddr(addr, gai_afd->a_addrlen, gai_afd->a_af, &h_error);
506 hp = gethostbyaddr(addr, gai_afd->a_addrlen, AF_INET);
508 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
509 GET_AI(cur, gai_afd, hp->h_addr_list[0], port);
510 GET_CANONNAME(cur, hp->h_name);
515 if (hp)
516 freehostent(hp);
524 if (hp)
525 freehostent(hp);
542 struct hostent *hp;
553 hp = getipnodebyname(hostname, AF_INET6,
556 hp = getipnodebyname(hostname, af, AI_ADDRCONFIG, &h_error);
558 hp = gethostbyname(hostname);
561 if (hp == NULL) {
578 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
579 (hp->h_addr_list[0] == NULL)) {
584 for (i = 0; (ap = hp->h_addr_list[i]) != NULL; i++) {
622 GET_CANONNAME(top, hp->h_name);
627 freehostent(hp);
635 if (hp)
636 freehostent(hp);