Lines Matching refs:hostent
57 struct hostent **host, struct ares_addr6ttl *addrttls, in ares_parse_aaaa_reply()
68 struct hostent *hostent; in ares_parse_aaaa_reply() local
228 hostent = malloc(sizeof(struct hostent)); in ares_parse_aaaa_reply()
229 if (hostent) in ares_parse_aaaa_reply()
231 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
232 if (hostent->h_addr_list) in ares_parse_aaaa_reply()
235 hostent->h_name = hostname; in ares_parse_aaaa_reply()
236 hostent->h_aliases = aliases; in ares_parse_aaaa_reply()
237 hostent->h_addrtype = AF_INET6; in ares_parse_aaaa_reply()
238 hostent->h_length = sizeof(struct ares_in6_addr); in ares_parse_aaaa_reply()
240 hostent->h_addr_list[i] = (char *) &addrs[i]; in ares_parse_aaaa_reply()
241 hostent->h_addr_list[naddrs] = NULL; in ares_parse_aaaa_reply()
242 *host = hostent; in ares_parse_aaaa_reply()
245 free(hostent); in ares_parse_aaaa_reply()