Lines Matching defs:hosts
93 static char **hosts = NULL;
338 * If no hosts were specified, just bind to INADDR_ANY.
342 hosts = realloc(hosts, nhostsbak * sizeof(char *));
344 hosts[0] = "*";
347 hosts[nhostsbak - 1] = "127.0.0.1";
349 hosts[nhostsbak - 1] = "::1";
374 if (inet_pton(AF_INET, hosts[nhostsbak],
382 hosts[nhostsbak], host_addr) == 1) {
389 if (inet_pton(AF_INET6, hosts[nhostsbak],
396 if (inet_pton(AF_INET, hosts[nhostsbak],
415 * If no hosts were specified, just bind to INADDR_ANY
417 if (strcmp("*", hosts[nhostsbak]) == 0)
418 hosts[nhostsbak] = NULL;
419 if ((aicode = getaddrinfo(hosts[nhostsbak], servname, &hints,
430 (hosts[nhostsbak] == NULL) ? "*" :
431 hosts[nhostsbak], nconf->nc_netid);
692 if (getaddrinfo(hosts[i], NULL, &hints, &res) != 0)
816 hosts = realloc(hosts, nhosts * sizeof(char *));
817 if (hosts == NULL)
819 hosts[nhosts - 1] = strdup(optarg);
820 if (hosts[nhosts - 1] == NULL)