Lines Matching refs:hostname
15 * numbers for host hostname and service servname as defined in RFC3493.
16 * hostname and servname are pointers to null-terminated strings
17 * or NULL. hostname is either a host name or a numeric host address
32 * char *ai_canonname; // canonical name for hostname
63 * containing the canonical name of the specified hostname in
67 * case, if the hostname argument is a NULL pointer, then the IP
77 * will be set to the loopback address if hostname is a NULL
80 * If ai_flags is set to AI_NUMERICHOST it indicates that hostname
110 * listed in gai_strerror() if an error occurs. If both hostname and
166 resolve_name(int family, const char *hostname, int flags,
169 static int add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
171 static int add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
183 * Get a list of IP addresses and port numbers for host hostname and
187 getaddrinfo(const char *hostname, const char *servname,
199 if (hostname == NULL && servname == NULL)
271 * hostname/servname is '/'.
274 if (hostname != NULL &&
275 (family == AF_LOCAL || (family == 0 && *hostname == '/')))
276 return (get_local(hostname, socktype, res));
319 * Next, deal with just a service name, and no hostname.
322 if (hostname == NULL && (flags & AI_PASSIVE) != 0) {
360 if (hostname != NULL &&
376 if (strchr(hostname, '%') != NULL) {
377 strlcpy(ntmp, hostname, sizeof(ntmp));
399 if (inet_pton(AF_INET, hostname, (struct in_addr *)abuf)
425 } else if (inet_pton(AF_INET6, hostname, abuf) == 1) {
470 if (hostname == NULL && (flags & AI_PASSIVE) == 0) {
475 err = (net_order[i])(hostname, flags, &ai_list,
486 err = resolve_name(family, hostname, flags, &ai_list,
533 make_resstate(isc_mem_t *mctx, gai_statehead_t *head, const char *hostname,
562 namelen = strlen(hostname);
563 isc_buffer_constinit(&b, hostname, namelen);
618 make_resstates(isc_mem_t *mctx, const char *hostname, gai_statehead_t *head,
627 result = make_resstate(mctx, head, hostname, ".", &resstate0);
635 result = make_resstate(mctx, head, hostname,
646 * Insert the original hostname either at the head or the tail of the
894 resolve_name(int family, const char *hostname, int flags,
936 result = make_resstates(mctx, hostname, &head, conf);
1127 add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
1132 UNUSED(hostname);
1150 add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
1155 UNUSED(hostname);