Lines Matching defs:hostname

27  *    numbers for host hostname and service servname. The function is the
29 * RFC2133. hostname and servname are pointers to null-terminated strings
30 * or NULL. hostname is either a host name or a numeric host address
45 * char *ai_canonname; // canonical name for hostname
76 * containing the canonical name of the specified hostname in
80 * case, if the hostname argument is a NULL pointer, then the IP
90 * will be set to the loopback address if hostname is a NULL
93 * If ai_flags is set to AI_NUMERICHOST it indicates that hostname
124 * listed in gai_strerror() if an error occurs. If both hostname and
160 static int add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
162 static int add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
172 /*% Get a list of IP addresses and port numbers for host hostname and service servname. */
174 lwres_getaddrinfo(const char *hostname, const char *servname,
185 if (hostname == NULL && servname == NULL)
257 * hostname/servname is '/'.
260 if (hostname != NULL &&
261 (family == AF_LOCAL || (family == 0 && *hostname == '/')))
262 return (get_local(hostname, socktype, res));
305 * Next, deal with just a service name, and no hostname.
308 if (hostname == NULL && (flags & AI_PASSIVE) != 0) {
347 if (hostname != NULL &&
363 if (strchr(hostname, '%') != NULL) {
364 strncpy(ntmp, hostname, sizeof(ntmp) - 1);
387 if (lwres_net_pton(AF_INET, hostname, (struct in_addr *)abuf)
415 } else if (lwres_net_pton(AF_INET6, hostname, abuf) == 1) {
461 err = (net_order[i])(hostname, flags, &ai_list,
560 add_ipv4(const char *hostname, int flags, struct addrinfo **aip,
574 if (hostname == NULL && (flags & AI_PASSIVE) == 0) {
584 lwres = lwres_getaddrsbyname(lwrctx, hostname,
623 add_ipv6(const char *hostname, int flags, struct addrinfo **aip,
638 if (hostname == NULL && (flags & AI_PASSIVE) == 0) {
648 lwres = lwres_getaddrsbyname(lwrctx, hostname,