Lines Matching defs:hostent
519 resolv_copy_hostent_common(TALLOC_CTX *mem_ctx, struct hostent *src)
562 resolv_copy_hostent(TALLOC_CTX *mem_ctx, struct hostent *src)
606 resolv_copy_hostent_ares(TALLOC_CTX *mem_ctx, struct hostent *src,
690 struct hostent *hostent = NULL;
709 &hostent);
712 state->rhostent = resolv_copy_hostent(state, hostent);
730 if (hostent) ares_free_hostent(hostent);
938 struct hostent *hostent;
955 status = ares_parse_a_reply(abuf, alen, &hostent,
968 status = ares_parse_aaaa_reply(abuf, alen, &hostent,
978 if (hostent != NULL) {
979 state->rhostent = resolv_copy_hostent_ares(state, hostent,
982 ares_free_hostent(hostent);
1050 /* These are returned by ares. The hostent struct will be freed
1110 "Cannot create a fake hostent structure\n");
1393 struct resolv_hostent *hostent,
1398 if (!hostent) return NULL;
1407 if (inet_ntop(hostent->family, hostent->addr_list[addrindex]->ipaddr,
1456 struct resolv_hostent *hostent,
1461 if (!hostent) return NULL;
1469 switch(hostent->family) {
1473 hostent->addr_list[addrindex]->ipaddr,
1481 hostent->addr_list[addrindex]->ipaddr,
1487 "Unknown address family %d\n", hostent->family);