Lines Matching refs:iterator
218 struct addrinfo *itr, *last = NULL, *iterator = res;
219 while (iterator != NULL) {
223 if (iterator->ai_family == itr->ai_family &&
224 iterator->ai_addrlen == itr->ai_addrlen) {
227 addr1 = (struct sockaddr_in *)iterator->ai_addr;
237 addr1 = (struct sockaddr_in6 *)iterator->ai_addr;
254 } else if (iterator->ai_family != AF_INET &&
255 iterator->ai_family != AF_INET6) {
271 memcpy(next, iterator, sizeof(struct addrinfo));
280 if (iterator->ai_family == AF_INET) {
282 } else if (iterator->ai_family == AF_INET6) {
286 iterator = iterator->ai_next;
289 iterator = resNew;
308 while (iterator != NULL) {
309 if (iterator->ai_family == AF_INET) {
315 setInetAddress_addr(env, iaObj, ntohl(((struct sockaddr_in*)iterator->ai_addr)->sin_addr.s_addr));
319 } else if (iterator->ai_family == AF_INET6) {
334 (jbyte *)&(((struct sockaddr_in6*)iterator->ai_addr)->sin6_addr));
337 scope = ((struct sockaddr_in6*)iterator->ai_addr)->sin6_scope_id;
340 scope = ((struct sockaddr_in6*)iterator->ai_addr)->sin6_scope_id;
351 iterator = iterator->ai_next;
358 struct addrinfo *iterator, *tmp;
359 iterator = resNew;
360 while (iterator != NULL) {
361 tmp = iterator;
362 iterator = iterator->ai_next;