Lines Matching refs:iterator
145 struct addrinfo *itr, *last, *iterator = res;
146 while (iterator != NULL) {
150 if (iterator->ai_family == itr->ai_family &&
151 iterator->ai_addrlen == itr->ai_addrlen) {
154 addr1 = (struct sockaddr_in *)iterator->ai_addr;
164 addr1 = (struct sockaddr_in6 *)iterator->ai_addr;
181 } else if (iterator->ai_family != AF_INET &&
182 iterator->ai_family != AF_INET6) {
198 memcpy(next, iterator, sizeof(struct addrinfo));
207 if (iterator->ai_family == AF_INET) {
209 } else if (iterator->ai_family == AF_INET6) {
213 iterator = iterator->ai_next;
216 iterator = resNew;
233 while (iterator != NULL) {
234 if (iterator->ai_family == AF_INET) {
240 setInetAddress_addr(env, iaObj, ntohl(((struct sockaddr_in*)iterator->ai_addr)->sin_addr.s_addr));
244 } else if (iterator->ai_family == AF_INET6) {
258 (jbyte *)&(((struct sockaddr_in6*)iterator->ai_addr)->sin6_addr));
259 scope = ((struct sockaddr_in6*)iterator->ai_addr)->sin6_scope_id;
269 iterator = iterator->ai_next;
275 struct addrinfo *iterator, *tmp;
276 iterator = resNew;
277 while (iterator != NULL) {
278 tmp = iterator;
279 iterator = iterator->ai_next;