Lines Matching full:he
50 struct hostent *he = gethostbyname(address); in make_address() local
51 if(he) { in make_address()
52 unsigned char *p = (unsigned char*)he->h_addr; in make_address()
190 static struct hostent he; in roken_gethostby() local
195 he.h_name = p; in roken_gethostby()
196 he.h_aliases = NULL; in roken_gethostby()
197 he.h_addrtype = AF_INET; in roken_gethostby()
198 he.h_length = 4; in roken_gethostby()
211 he.h_addr_list = addr_list; in roken_gethostby()
212 return &he; in roken_gethostby()
219 struct hostent *he; in roken_gethostbyname() local
220 he = gethostbyname(hostname); in roken_gethostbyname()
221 if(he) in roken_gethostbyname()
222 return he; in roken_gethostbyname()
231 struct hostent *he; in roken_gethostbyaddr() local
232 he = gethostbyaddr(addr, len, type); in roken_gethostbyaddr()
233 if(he) in roken_gethostbyaddr()
234 return he; in roken_gethostbyaddr()
258 struct hostent *he;
263 he = gethostbyname(query);
264 strncpy(host, he->h_name, sizeof(host));
266 he = gethostbyaddr(he->h_addr, he->h_length, AF_INET);
267 printf("%s\n", he->h_name);
268 for(i = 0; he->h_addr_list[i]; i++) {
270 unsigned char *p = (unsigned char*)he->h_addr_list[i];