Lines Matching refs:hostent
51 struct hostent** host ) in ares_parse_ns_reply()
59 struct hostent *hostent; in ares_parse_ns_reply() local
158 hostent = malloc( sizeof( struct hostent ) ); in ares_parse_ns_reply()
159 if ( hostent ) in ares_parse_ns_reply()
161 hostent->h_addr_list = malloc( 1 * sizeof( char * ) ); in ares_parse_ns_reply()
162 if ( hostent->h_addr_list ) in ares_parse_ns_reply()
165 hostent->h_name = hostname; in ares_parse_ns_reply()
166 hostent->h_aliases = nameservers; in ares_parse_ns_reply()
167 hostent->h_addrtype = AF_INET; in ares_parse_ns_reply()
168 hostent->h_length = sizeof( struct in_addr ); in ares_parse_ns_reply()
169 hostent->h_addr_list[0] = NULL; in ares_parse_ns_reply()
170 *host = hostent; in ares_parse_ns_reply()
173 free( hostent ); in ares_parse_ns_reply()