Lines Matching defs:host
186 * host.
254 struct hostent *host;
259 host = getipnodebyname(fromhost, AF_INET6, AI_DEFAULT, &errnum);
260 if (host == NULL) {
263 "Could not find host %s"), fromhost);
267 for (j = 0; j < host->h_length; j++)
268 fromnetaddr[j] = host->h_addr[j];
269 freehostent(host);
271 host = gethostbyname(fromhost);
272 if (host == NULL) {
275 "Could not find host %s"), fromhost);
280 if (host->h_length < 4) {
282 fprintf(stderr, "host->h_length(%d) < 4!\n", host->h_length);
287 for (j = 0; j < host->h_length; j++)
288 fromnetaddr[j] = host->h_addr[j];
292 host = getipnodebyname(tohost, AF_INET6, AI_DEFAULT, &errnum);
293 if (host == NULL) {
296 "Could not find host %s"), tohost);
300 for (j = 0; j < host->h_length; j++)
301 tonetaddr[j] = host->h_addr[j];
302 freehostent(host);
304 host = gethostbyname(tohost);
305 if (host == NULL) {
308 "Could not find host %s"), tohost);
313 if (host->h_length < 4) {
315 fprintf(stderr, "host->h_length(%d) < 4!\n", host->h_length);
320 for (j = 0; j < host->h_length; j++)
321 tonetaddr[j] = host->h_addr[j];
409 "Could not find host %s\n"), hostname);
437 "Could not find host %s"), hostname);