Lines Matching refs:hostname
50 * when globbing NULL hostname (to loopback, or wildcard). Is it the right
54 * (1) what should we do against numeric hostname (2) what should we do
55 * against NULL hostname (3) what is AI_ADDRCONFIG itself. AF not ready?
206 "Address family for hostname not supported", /*%< EAI_ADDRFAMILY */
212 "No address associated with hostname", /*%< EAI_NODATA */
213 "hostname nor servname provided, or not known", /*%< EAI_NONAME */
320 getaddrinfo(hostname, servname, hints, res)
321 const char *hostname, *servname;
353 if (hostname == NULL && servname == NULL)
448 /* NULL hostname, or numeric hostname */
472 if (hostname == NULL) {
481 error = explore_numeric_scope(pai, hostname, servname,
501 if (hostname == NULL)
505 * hostname as alphabetical name.
517 error = explore_fqdn(pai, hostname, servname, &afai);
605 * FQDN hostname, DNS lookup
608 explore_fqdn(pai, hostname, servname, res)
610 const char *hostname;
642 if (!strchr(hostname, '.') &&
643 (cp = res_hostalias(net_data->res, hostname,
645 hostname = cp;
646 result = (*ho->addrinfo)(ho, hostname, pai);
728 * hostname == NULL.
776 * numeric hostname
779 explore_numeric(pai, hostname, servname, res)
781 const char *hostname;
802 if (inet_aton(hostname, (struct in_addr *)pton) == 1) {
815 if (inet_pton(afd->a_af, hostname, pton) == 1) {
839 * numeric hostname with scope
842 explore_numeric_scope(pai, hostname, servname, res)
844 const char *hostname;
849 return explore_numeric(pai, hostname, servname, res);
862 return explore_numeric(pai, hostname, servname, res);
864 cp = strchr(hostname, SCOPE_DELIMITER);
866 return explore_numeric(pai, hostname, servname, res);
871 hostname2 = strdup(hostname);
875 hostname2[cp - hostname] = '\0';