Lines Matching refs:hp

110 	struct hostent *hp = NULL;  in iplookup()  local
135 hp = getipnodebyaddr((char *)&ipaddr, sizeof (int), in iplookup()
137 if (hp == NULL && inet_lnaof(ipaddr) == 0) { in iplookup()
150 hp ? hp->h_name : inet_ntoa(ipaddr), in iplookup()
151 hp ? hp->h_aliases : NULL); in iplookup()
152 if (hp != NULL) in iplookup()
153 freehostent(hp); in iplookup()
161 struct hostent *hp = NULL; in ip6lookup() local
185 hp = getipnodebyaddr(ip6addr, sizeof (struct in6_addr), in ip6lookup()
192 hp = NULL; in ip6lookup()
195 if (hp != NULL) in ip6lookup()
196 addname = hp->h_name; in ip6lookup()
202 retval = addhost(AF_INET6, ip6addr, addname, hp ? hp->h_aliases : NULL); in ip6lookup()
203 if (hp != NULL) in ip6lookup()
204 freehostent(hp); in ip6lookup()
211 struct hostdata **hp, *n = NULL; in addhost() local
233 hp = (struct hostdata **)&h_table4[iphash(hashval)]; in addhost()
248 hp = (struct hostdata **)&h_table6[iphash(hashval)]; in addhost()
256 n->h_next = *hp; in addhost()
257 *hp = n; in addhost()
383 struct hostent *hp = &he; in lgetipnodebyname() local
386 (void) memset((char *)hp, 0, sizeof (struct hostent)); in lgetipnodebyname()
387 hp->h_name = h_name; in lgetipnodebyname()
391 hp->h_addrtype = AF_INET6; in lgetipnodebyname()
393 hp->h_addr_list = list; in lgetipnodebyname()
395 hp->h_addr_list[i] = NULL; in lgetipnodebyname()
400 hp->h_length = sizeof (struct in6_addr); in lgetipnodebyname()
406 return (hp); in lgetipnodebyname()
409 hp->h_addr_list[ind] = in lgetipnodebyname()
423 return (hp); in lgetipnodebyname()
427 hp->h_addrtype = AF_INET; in lgetipnodebyname()
428 hp->h_length = in lgetipnodebyname()
430 hp->h_addr_list[ind] = in lgetipnodebyname()
435 hp->h_length = in lgetipnodebyname()
437 hp->h_addr_list[ind] = in lgetipnodebyname()
448 return (ind > 0 ? hp : NULL); in lgetipnodebyname()