Lines Matching full: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?
255 "Address family for hostname not supported", /* EAI_ADDRFAMILY */
261 "No address associated with hostname", /* EAI_NODATA */
262 "hostname nor servname provided, or not known", /* EAI_NONAME */
414 const char *hostname, const char *servname,
429 if ((hostname != NULL &&
430 strcspn(hostname, " \n\r\t^'\"") != strlen(hostname)) ||
458 hostname == NULL ? "^" : hostname,
585 getaddrinfo(const char *hostname, const char *servname,
588 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res);
592 android_getaddrinfofornet(const char *hostname, const char *servname,
604 /* hostname is allowed to be NULL */
620 if (hostname == NULL && servname == NULL)
689 /* NULL hostname, or numeric hostname */
711 if (hostname == NULL)
714 error = explore_numeric_scope(pai, hostname, servname,
732 if (hostname == NULL)
742 return android_getaddrinfo_proxy(hostname, servname, hints, res, netid);
746 * hostname as alphabetical name.
771 error = explore_fqdn(pai, hostname, servname,
801 * FQDN hostname, DNS lookup
804 explore_fqdn(const struct addrinfo *pai, const char *hostname,
818 /* hostname may be NULL */
831 default_dns_files, hostname, pai, netid, mark)) {
861 * hostname == NULL.
929 * numeric hostname
932 explore_numeric(const struct addrinfo *pai, const char *hostname,
942 /* hostname may be NULL */
963 if (inet_aton(hostname, (struct in_addr *)pton) == 1) {
984 if (inet_pton(afd->a_af, hostname, pton) == 1) {
1016 * numeric hostname with scope
1019 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1023 return explore_numeric(pai, hostname, servname, res, hostname);
1032 /* hostname may be NULL */
1047 return explore_numeric(pai, hostname, servname, res, hostname);
1049 cp = strchr(hostname, SCOPE_DELIMITER);
1051 return explore_numeric(pai, hostname, servname, res, hostname);
1056 hostname2 = strdup(hostname);
1060 hostname2[cp - hostname] = '\0';
1064 error = explore_numeric(pai, addr, servname, res, hostname);