Lines Matching defs:hostname
42 * when globbing NULL hostname (to loopback, or wildcard). Is it the right
46 * (1) what should we do against numeric hostname (2) what should we do
47 * against NULL hostname (3) what is AI_ADDRCONFIG itself. AF not ready?
390 getaddrinfo(const char *hostname, const char *servname,
425 if (hostname == NULL && servname == NULL)
519 * NULL hostname, or numeric hostname.
533 if (hostname == NULL) {
544 error = explore_numeric_scope(pai, hostname, servname,
549 * families that do not match that of hostname.
562 if (hostname == NULL)
571 * hostname as alphabetical name.
574 error = explore_fqdn(pai, hostname, servname, &afai_unspec);
1170 * hostname == NULL.
1222 * numeric hostname
1225 explore_numeric(const struct addrinfo *pai, const char *hostname,
1245 if (hostname[0] != '/')
1247 if (strlen(hostname) > afd->a_addrlen)
1250 strncpy(path, hostname, afd->a_addrlen);
1261 if (inet_aton(hostname, (struct in_addr *)pton) != 1)
1266 if (inet_pton(afd->a_af, hostname, pton) != 1) {
1270 if (inet_aton(hostname, (struct in_addr *)pton) != 1)
1312 * numeric hostname with scope
1315 explore_numeric_scope(const struct addrinfo *pai, const char *hostname,
1319 return explore_numeric(pai, hostname, servname, res, hostname);
1332 return explore_numeric(pai, hostname, servname, res, hostname);
1334 cp = strchr(hostname, SCOPE_DELIMITER);
1336 return explore_numeric(pai, hostname, servname, res, hostname);
1341 hostname2 = strdup(hostname);
1345 hostname2[cp - hostname] = '\0';
1349 error = explore_numeric(pai, addr, servname, res, hostname);
1724 char *hostname;
1735 hostname = va_arg(ap, char *);
1739 if (hostname != NULL) {
1740 size = strlen(hostname);
1778 if (hostname != NULL)
1779 memcpy(p, hostname, size);
1894 * FQDN hostname, DNS lookup
1897 explore_fqdn(const struct addrinfo *pai, const char *hostname,
1929 default_dns_files, hostname, pai)) {
2246 const char *hostname;
2252 hostname = va_arg(ap, char *);
2283 q.name = hostname;
2289 q2.name = hostname;
2296 q.name = hostname;
2303 q.name = hostname;
2322 if (res_searchN(hostname, &q, res) < 0) {