Lines Matching defs:hostname

30  *    numbers for host hostname and service servname. The function is the
32 * RFC2133. hostname and servname are pointers to null-terminated strings
33 * or NULL. hostname is either a host name or a numeric host address
48 * char *ai_canonname; // canonical name for hostname
79 * containing the canonical name of the specified hostname in
83 * case, if the hostname argument is a NULL pointer, then the IP
93 * will be set to the loopback address if hostname is a NULL
96 * If ai_flags is set to AI_NUMERICHOST it indicates that hostname
127 * listed in gai_strerror() if an error occurs. If both hostname and
163 static int add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
165 static int add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
175 /*% Get a list of IP addresses and port numbers for host hostname and service servname. */
177 lwres_getaddrinfo(const char *hostname, const char *servname,
188 if (hostname == NULL && servname == NULL)
260 * hostname/servname is '/'.
263 if (hostname != NULL &&
264 (family == AF_LOCAL || (family == 0 && *hostname == '/')))
265 return (get_local(hostname, socktype, res));
308 * Next, deal with just a service name, and no hostname.
311 if (hostname == NULL && (flags & AI_PASSIVE) != 0) {
350 if (hostname != NULL &&
366 if (strchr(hostname, '%') != NULL) {
367 strncpy(ntmp, hostname, sizeof(ntmp) - 1);
390 if (lwres_net_pton(AF_INET, hostname, (struct in_addr *)abuf)
418 } else if (lwres_net_pton(AF_INET6, hostname, abuf) == 1) {
464 err = (net_order[i])(hostname, flags, &ai_list,
563 add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
577 if (hostname == NULL && (flags & AI_PASSIVE) == 0) {
587 lwres = lwres_getaddrsbyname(lwrctx, hostname,
626 add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
641 if (hostname == NULL && (flags & AI_PASSIVE) == 0) {
651 lwres = lwres_getaddrsbyname(lwrctx, hostname,