Lines Matching refs:hostname

47  *   when globbing NULL hostname (to loopback, or wildcard).  Is it the right
51 * (1) what should we do against numeric hostname (2) what should we do
52 * against NULL hostname (3) what is AI_ADDRCONFIG itself. AF not ready?
295 "Address family for hostname not supported", /* EAI_ADDRFAMILY */
301 "No address associated with hostname", /* EAI_NODATA */
302 "hostname or servname not provided or not known", /* EAI_NONAME */
451 getaddrinfo(const char *hostname, const char *servname,
465 /* hostname is allowed to be NULL */
484 if (hostname == NULL && servname == NULL)
556 /* NULL hostname, or numeric hostname */
581 if (hostname == NULL)
585 error = explore_numeric_scope(pai, hostname, servname,
605 if (hostname == NULL)
611 * hostname as alphabetical name.
643 error = explore_fqdn(pai, hostname, servname, &cur->ai_next,
1172 * FQDN hostname, DNS lookup
1175 explore_fqdn(const struct addrinfo *pai, const char *hostname,
1189 /* hostname may be NULL */
1202 default_dns_files, hostname, pai, servname)) {
1235 * hostname == NULL.
1303 * numeric hostname
1306 explore_numeric(const struct addrinfo *pai, const char *hostname,
1317 /* hostname may be NULL */
1350 if (inet_aton(hostname, (void *)pton) == 1 &&
1351 hostname[strspn(hostname, "0123456789.xabcdefXABCDEF")]
1372 if (inet_pton(afd->a_af, hostname, pton) == 1) {
1404 * numeric hostname with scope
1407 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1411 return explore_numeric(pai, hostname, servname, res, hostname, svd);
1420 /* hostname may be NULL */
1435 return explore_numeric(pai, hostname, servname, res, hostname,
1438 cp = strchr(hostname, SCOPE_DELIMITER);
1440 return explore_numeric(pai, hostname, servname, res, hostname,
1446 hostname2 = strdup(hostname);
1450 hostname2[cp - hostname] = '\0';
1454 error = explore_numeric(pai, addr, servname, res, hostname, svd);