Lines Matching refs:hp
87 struct hostent *hp;
89 hp = getipnodebyname(hostname, AF_INET6,
91 if (hp != NULL) {
92 (void) memcpy(&ipv6addr, hp->h_addr_list[0], hp->h_length);
118 struct hostent *hp;
126 hp = getipnodebyname(name, AF_INET6, AI_ADDRCONFIG, &errnum);
127 if (hp != NULL) {
131 (void) memcpy(&sin6->sin6_addr, hp->h_addr_list[0],
132 hp->h_length);
153 } else if (hp != NULL) { /* use the IPv6 address */
154 addr_to_string("IPV6ADDR-", (uchar_t *)&hp->h_addr_list[0],
155 hp->h_length, buf, sizeof (buf));