Lines Matching refs:host
28 * httpAddrLoad() - Load a host entry address into an HTTP address.
90 * 'httpAddrLoad()' - Load a host entry address into an HTTP address.
94 httpAddrLoad(const struct hostent *host, /* I - Host entry */
96 int n, /* I - Index into host entry */
100 if (host->h_addrtype == AF_INET6)
108 memcpy((char *)&(addr->ipv6.sin6_addr), host->h_addr_list[n],
109 host->h_length);
115 if (host->h_addrtype == AF_LOCAL)
118 strlcpy(addr->un.sun_path, host->h_addr_list[n], sizeof(addr->un.sun_path));
122 if (host->h_addrtype == AF_INET)
130 memcpy((char *)&(addr->ipv4.sin_addr), host->h_addr_list[n],
131 host->h_length);
141 int /* O - 1 if local host, 0 otherwise */
180 struct hostent *host; /* Host from name service */
188 host = gethostbyaddr(ADDR_CAST &(addr->ipv6.sin6_addr),
201 host = gethostbyaddr(ADDR_CAST &(addr->ipv4.sin_addr),
204 host = NULL;
206 if (host == NULL)
212 strlcpy(name, host->h_name, namelen);
326 * We have an IP address; break it up and provide the host entry
340 * Fill in the host entry and return it...