Lines Matching refs:host
187 * host.
255 struct hostent *host;
260 host = getipnodebyname(fromhost, AF_INET6, AI_DEFAULT, &errnum);
261 if (host == NULL) {
264 "Could not find host %s"), fromhost);
268 for (j = 0; j < host->h_length; j++)
269 fromnetaddr[j] = host->h_addr[j];
270 freehostent(host);
272 host = gethostbyname(fromhost);
273 if (host == NULL) {
276 "Could not find host %s"), fromhost);
281 if (host->h_length < 4) {
283 fprintf(stderr, "host->h_length(%d) < 4!\n", host->h_length);
288 for (j = 0; j < host->h_length; j++)
289 fromnetaddr[j] = host->h_addr[j];
293 host = getipnodebyname(tohost, AF_INET6, AI_DEFAULT, &errnum);
294 if (host == NULL) {
297 "Could not find host %s"), tohost);
301 for (j = 0; j < host->h_length; j++)
302 tonetaddr[j] = host->h_addr[j];
303 freehostent(host);
305 host = gethostbyname(tohost);
306 if (host == NULL) {
309 "Could not find host %s"), tohost);
314 if (host->h_length < 4) {
316 fprintf(stderr, "host->h_length(%d) < 4!\n", host->h_length);
321 for (j = 0; j < host->h_length; j++)
322 tonetaddr[j] = host->h_addr[j];
413 "Could not find host %s\n"), hostname);
445 "Could not find host %s"), hostname);