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?
256 "Address family for hostname not supported", /* EAI_ADDRFAMILY */
262 "No address associated with hostname", /* EAI_NODATA */
263 "hostname nor servname provided, or not known", /* EAI_NONAME */
405 const char *hostname, const char *servname,
416 if ((hostname != NULL &&
417 strcspn(hostname, " \n\r\t^'\"") != strlen(hostname)) ||
432 hostname == NULL ? "^" : hostname,
484 // char *ai_canonname; /* canonical name for hostname */
560 getaddrinfo(const char *hostname, const char *servname,
563 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res);
567 android_getaddrinfofornet(const char *hostname, const char *servname,
577 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res);
581 android_getaddrinfofornetcontext(const char *hostname, const char *servname,
593 /* hostname is allowed to be NULL */
610 if (hostname == NULL && servname == NULL)
679 /* NULL hostname, or numeric hostname */
701 if (hostname == NULL)
704 error = explore_numeric_scope(pai, hostname, servname,
722 if (hostname == NULL)
729 hostname, servname, hints, res, netcontext->app_netid);
736 * hostname as alphabetical name.
762 pai, hostname, servname, &cur->ai_next, netcontext);
791 * FQDN hostname, DNS lookup
794 explore_fqdn(const struct addrinfo *pai, const char *hostname,
809 /* hostname may be NULL */
822 default_dns_files, hostname, pai, netcontext)) {
852 * hostname == NULL.
920 * numeric hostname
923 explore_numeric(const struct addrinfo *pai, const char *hostname,
933 /* hostname may be NULL */
954 if (inet_aton(hostname, (struct in_addr *)pton) == 1) {
975 if (inet_pton(afd->a_af, hostname, pton) == 1) {
1007 * numeric hostname with scope
1010 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1014 return explore_numeric(pai, hostname, servname, res, hostname);
1023 /* hostname may be NULL */
1038 return explore_numeric(pai, hostname, servname, res, hostname);
1040 cp = strchr(hostname, SCOPE_DELIMITER);
1042 return explore_numeric(pai, hostname, servname, res, hostname);
1047 hostname2 = strdup(hostname);
1051 hostname2[cp - hostname] = '\0';
1055 error = explore_numeric(pai, addr, servname, res, hostname);