Lines Matching defs:bindhost
111 static int setbindhost(struct addrinfo **ia, const char *bindhost,
163 char **bindhost = NULL;
200 bindhost = realloc(bindhost,sizeof(char *)*bindhostc);
201 if (bindhost == NULL)
203 bindhost[bindhostc-1] = strdup(optarg);
204 if (bindhost[bindhostc-1] == NULL)
292 bindhost = realloc(bindhost,sizeof(char *)*bindhostc);
293 if (bindhost == NULL)
295 bindhost[bindhostc-1] = strdup("*");
296 if (bindhost[bindhostc-1] == NULL)
512 if (setbindhost(&ai_udp, bindhost[i], hints) == 0) {
526 bindhost[i]);
584 if (setbindhost(&ai_udp6, bindhost[i], hints) == 0) {
605 bindhost[i]);
666 if (setbindhost(&ai_tcp, bindhost[i], hints) == 0) {
684 bindhost[i]);
742 if (setbindhost(&ai_tcp6, bindhost[i], hints) == 0) {
768 bindhost[i]);
881 setbindhost(struct addrinfo **ai, const char *bindhost, struct addrinfo hints)
887 if (bindhost == NULL || strcmp("*", bindhost) == 0)
890 hostptr = bindhost;
919 syslog(LOG_ERR, "getaddrinfo %s: %s", bindhost,