Lines Matching refs:naddrs
61 int status, i, rr_type, rr_class, rr_len, rr_ttl, naddrs; in ares_parse_aaaa_reply() local
122 naddrs = 0; in ares_parse_aaaa_reply()
157 memcpy(&addrs[naddrs], aptr, sizeof(struct ares_in6_addr)); in ares_parse_aaaa_reply()
159 if (naddrs < max_addr_ttls) in ares_parse_aaaa_reply()
161 struct ares_addr6ttl * const at = &addrttls[naddrs]; in ares_parse_aaaa_reply()
171 naddrs++; in ares_parse_aaaa_reply()
207 if (status == ARES_SUCCESS && naddrs == 0) in ares_parse_aaaa_reply()
214 const int n = naddrs < max_addr_ttls ? naddrs : max_addr_ttls; in ares_parse_aaaa_reply()
231 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
239 for (i = 0; i < naddrs; i++) in ares_parse_aaaa_reply()
241 hostent->h_addr_list[naddrs] = NULL; in ares_parse_aaaa_reply()