Lines Matching full:hp
69 struct host_list *hp; in search_host() local
74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host()
75 if (hp->addr.s_addr == addr.s_addr) in search_host()
84 struct host_list *hp; in remember_host() local
86 if ((hp = (struct host_list *)malloc(sizeof(struct host_list))) == NULL) in remember_host()
88 hp->addr.s_addr = addr.s_addr; in remember_host()
89 hp->next = hosts; in remember_host()
90 hosts = hp; in remember_host()
99 struct hostent *hp; in rusers_reply() local
112 hp = gethostbyaddr((char *)&raddrp->sin_addr.s_addr, in rusers_reply()
114 if (hp != NULL) in rusers_reply()
115 host = hp->h_name; in rusers_reply()
179 struct hostent *hp; in onehost() local
182 hp = gethostbyname(host); in onehost()
183 if (hp == NULL) in onehost()
196 memcpy(&addr.sin_addr.s_addr, hp->h_addr, sizeof(addr.sin_addr.s_addr)); in onehost()