Lines Matching refs:naddrs
59 int status, i, rr_type, rr_class, rr_len, rr_ttl, naddrs; in ares_parse_a_reply() local
122 naddrs = 0; in ares_parse_a_reply()
157 memcpy(&addrs[naddrs], aptr, sizeof(struct in_addr)); in ares_parse_a_reply()
159 if (naddrs < max_addr_ttls) in ares_parse_a_reply()
161 struct ares_addrttl * const at = &addrttls[naddrs]; in ares_parse_a_reply()
171 naddrs++; in ares_parse_a_reply()
207 if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0) in ares_parse_a_reply()
216 const int n = naddrs < max_addr_ttls ? naddrs : max_addr_ttls; in ares_parse_a_reply()
233 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply()
241 for (i = 0; i < naddrs; i++) in ares_parse_a_reply()
243 hostent->h_addr_list[naddrs] = NULL; in ares_parse_a_reply()
244 if (!naddrs && addrs) in ares_parse_a_reply()