• Home
  • Raw
  • Download

Lines Matching refs:hostname

258 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,  in getaddrinfo_numeric()  argument
268 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result); in getaddrinfo_numeric()
271 int android_getaddrinfofornetcontext(const char* hostname, const char* servname, in android_getaddrinfofornetcontext() argument
297 if (hostname == NULL && servname == NULL) { in android_getaddrinfofornetcontext()
368 if (hostname == nullptr) in android_getaddrinfofornetcontext()
371 error = explore_numeric_scope(&tmp, hostname, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
386 if (hostname == nullptr) { in android_getaddrinfofornetcontext()
416 error = explore_fqdn(&tmp, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
438 static int explore_fqdn(const struct addrinfo* pai, const char* hostname, const char* servname, in explore_fqdn() argument
453 if (!files_getaddrinfo(hostname, pai, &result)) { in explore_fqdn()
454 error = dns_getaddrinfo(hostname, pai, netcontext, &result); in explore_fqdn()
531 static int explore_numeric(const struct addrinfo* pai, const char* hostname, const char* servname, in explore_numeric() argument
556 if (inet_pton(afd->a_af, hostname, pton) == 1) { in explore_numeric()
588 static int explore_numeric_scope(const struct addrinfo* pai, const char* hostname, in explore_numeric_scope() argument
611 if (!afd->a_scoped) return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
613 cp = strchr(hostname, SCOPE_DELIMITER); in explore_numeric_scope()
614 if (cp == NULL) return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
619 char* hostname2 = strdup(hostname); in explore_numeric_scope()
622 hostname2[cp - hostname] = '\0'; in explore_numeric_scope()
626 error = explore_numeric(pai, addr, servname, res, hostname); in explore_numeric_scope()