Lines Matching refs:hostname
51 * when globbing NULL hostname (to loopback, or wildcard). Is it the right
55 * (1) what should we do against numeric hostname (2) what should we do
56 * against NULL hostname (3) what is AI_ADDRCONFIG itself. AF not ready?
252 "Address family for hostname not supported", /* EAI_ADDRFAMILY */
258 "No address associated with hostname", /* EAI_NODATA */
259 "hostname nor servname provided, or not known", /* EAI_NONAME */
409 const char *hostname, const char *servname,
424 if ((hostname != NULL &&
425 strcspn(hostname, " \n\r\t^'\"") != strlen(hostname)) ||
451 hostname == NULL ? "^" : hostname,
578 getaddrinfo(const char *hostname, const char *servname,
581 return android_getaddrinfoforiface(hostname, servname, hints, NULL, 0, res);
585 android_getaddrinfoforiface(const char *hostname, const char *servname,
597 /* hostname is allowed to be NULL */
613 if (hostname == NULL && servname == NULL)
682 /* NULL hostname, or numeric hostname */
704 if (hostname == NULL)
707 error = explore_numeric_scope(pai, hostname, servname,
725 if (hostname == NULL)
735 return android_getaddrinfo_proxy(hostname, servname, hints, res, iface);
739 * hostname as alphabetical name.
764 error = explore_fqdn(pai, hostname, servname,
794 * FQDN hostname, DNS lookup
797 explore_fqdn(const struct addrinfo *pai, const char *hostname,
811 /* hostname may be NULL */
824 default_dns_files, hostname, pai, iface, mark)) {
854 * hostname == NULL.
922 * numeric hostname
925 explore_numeric(const struct addrinfo *pai, const char *hostname,
935 /* hostname may be NULL */
956 if (inet_aton(hostname, (struct in_addr *)pton) == 1) {
977 if (inet_pton(afd->a_af, hostname, pton) == 1) {
1009 * numeric hostname with scope
1012 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1016 return explore_numeric(pai, hostname, servname, res, hostname);
1025 /* hostname may be NULL */
1040 return explore_numeric(pai, hostname, servname, res, hostname);
1042 cp = strchr(hostname, SCOPE_DELIMITER);
1044 return explore_numeric(pai, hostname, servname, res, hostname);
1049 hostname2 = strdup(hostname);
1053 hostname2[cp - hostname] = '\0';
1057 error = explore_numeric(pai, addr, servname, res, hostname);