Lines Matching refs:iter

49 	struct netlbl_af4list *iter;  in netlbl_af4list_search()  local
51 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search()
52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search()
53 return iter; in netlbl_af4list_search()
74 struct netlbl_af4list *iter; in netlbl_af4list_search_exact() local
76 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search_exact()
77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact()
78 return iter; in netlbl_af4list_search_exact()
99 struct netlbl_af6list *iter; in netlbl_af6list_search() local
101 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search()
102 if (iter->valid && in netlbl_af6list_search()
103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search()
104 return iter; in netlbl_af6list_search()
125 struct netlbl_af6list *iter; in netlbl_af6list_search_exact() local
127 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search_exact()
128 if (iter->valid && in netlbl_af6list_search_exact()
129 ipv6_addr_equal(&iter->addr, addr) && in netlbl_af6list_search_exact()
130 ipv6_addr_equal(&iter->mask, mask)) in netlbl_af6list_search_exact()
131 return iter; in netlbl_af6list_search_exact()
150 struct netlbl_af4list *iter; in netlbl_af4list_add() local
152 iter = netlbl_af4list_search(entry->addr, head); in netlbl_af4list_add()
153 if (iter != NULL && in netlbl_af4list_add()
154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add()
161 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_add()
162 if (iter->valid && in netlbl_af4list_add()
163 ntohl(entry->mask) > ntohl(iter->mask)) { in netlbl_af4list_add()
165 iter->list.prev, in netlbl_af4list_add()
166 &iter->list); in netlbl_af4list_add()
187 struct netlbl_af6list *iter; in netlbl_af6list_add() local
189 iter = netlbl_af6list_search(&entry->addr, head); in netlbl_af6list_add()
190 if (iter != NULL && in netlbl_af6list_add()
191 ipv6_addr_equal(&iter->addr, &entry->addr) && in netlbl_af6list_add()
192 ipv6_addr_equal(&iter->mask, &entry->mask)) in netlbl_af6list_add()
199 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_add()
200 if (iter->valid && in netlbl_af6list_add()
201 ipv6_addr_cmp(&entry->mask, &iter->mask) > 0) { in netlbl_af6list_add()
203 iter->list.prev, in netlbl_af6list_add()
204 &iter->list); in netlbl_af6list_add()
357 int iter = -1; in netlbl_af6list_audit_addr() local
358 while (ntohl(mask->s6_addr32[++iter]) == 0xffffffff) in netlbl_af6list_audit_addr()
360 mask_val = ntohl(mask->s6_addr32[iter]); in netlbl_af6list_audit_addr()