Searched refs:ip_to (Results 1 - 11 of 11) sorted by relevance

/net/netfilter/ipset/
H A Dip_set_hash_ip.c109 u32 ip = 0, ip_to = 0, hosts; local
138 ip_to = ip;
140 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
143 if (ip > ip_to)
144 swap(ip, ip_to);
150 ip_set_mask_from_to(ip, ip_to, cidr);
157 for (; !before(ip_to, ip); ip += hosts) {
H A Dip_set_hash_ipmark.c110 u32 ip, ip_to = 0; local
140 ip_to = ip = ntohl(e.ip);
142 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
145 if (ip > ip_to)
146 swap(ip, ip_to);
152 ip_set_mask_from_to(ip, ip_to, cidr);
157 for (; !before(ip_to, ip); ip++) {
H A Dip_set_bitmap_ip.c135 u32 ip = 0, ip_to = 0; local
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
169 if (ip > ip_to) {
170 swap(ip, ip_to);
179 ip_set_mask_from_to(ip, ip_to, cidr);
181 ip_to = ip;
183 if (ip_to > map->last_ip)
186 for (; !before(ip_to, ip); ip += map->hosts) {
H A Dip_set_hash_net.c147 u32 ip = 0, ip_to = 0, last; local
187 ip_to = ip;
189 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
192 if (ip_to < ip)
193 swap(ip, ip_to);
194 if (ip + UINT_MAX == ip_to)
199 while (!after(ip, ip_to)) {
201 last = ip_set_range_to_cidr(ip, ip_to, &e.cidr);
H A Dip_set_hash_ipport.c117 u32 ip, ip_to = 0, p = 0, port, port_to; local
164 ip_to = ip = ntohl(e.ip);
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
169 if (ip > ip_to)
170 swap(ip, ip_to);
176 ip_set_mask_from_to(ip, ip_to, cidr);
188 for (; !before(ip_to, ip); ip++) {
H A Dip_set_hash_ipportip.c119 u32 ip, ip_to = 0, p = 0, port, port_to; local
170 ip_to = ip = ntohl(e.ip);
172 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
175 if (ip > ip_to)
176 swap(ip, ip_to);
182 ip_set_mask_from_to(ip, ip_to, cidr);
194 for (; !before(ip_to, ip); ip++) {
H A Dip_set_hash_netnet.c165 u32 ip = 0, ip_to = 0, last; local
219 ip_to = ip;
221 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
224 if (ip_to < ip)
225 swap(ip, ip_to);
226 if (unlikely(ip + UINT_MAX == ip_to))
229 ip_set_mask_from_to(ip, ip_to, e.cidr[0]);
246 while (!after(ip, ip_to)) {
248 last = ip_set_range_to_cidr(ip, ip_to, &cidr);
H A Dip_set_hash_netportnet.c180 u32 ip = 0, ip_to = 0, ip_last, p = 0, port, port_to; local
255 ip_to = ip;
257 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
260 if (ip > ip_to)
261 swap(ip, ip_to);
262 if (unlikely(ip + UINT_MAX == ip_to))
265 ip_set_mask_from_to(ip, ip_to, e.cidr[0]);
289 while (!after(ip, ip_to)) {
291 ip_last = ip_set_range_to_cidr(ip, ip_to, &cidr);
H A Dip_set_hash_netiface.c276 u32 ip = 0, ip_to = 0, last; local
332 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
335 if (ip_to < ip)
336 swap(ip, ip_to);
337 if (ip + UINT_MAX == ip_to)
340 ip_set_mask_from_to(ip, ip_to, e.cidr);
344 while (!after(ip, ip_to)) {
346 last = ip_set_range_to_cidr(ip, ip_to, &e.cidr);
H A Dip_set_hash_netport.c165 u32 port, port_to, p = 0, ip = 0, ip_to = 0, last; local
236 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
239 if (ip_to < ip)
240 swap(ip, ip_to);
241 if (ip + UINT_MAX == ip_to)
244 ip_set_mask_from_to(ip, ip_to, e.cidr + 1);
248 while (!after(ip, ip_to)) {
250 last = ip_set_range_to_cidr(ip, ip_to, &cidr);
H A Dip_set_hash_ipportnet.c171 u32 ip = 0, ip_to = 0, p = 0, port, port_to; local
242 ip_to = ip;
244 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to);
247 if (ip > ip_to)
248 swap(ip, ip_to);
254 ip_set_mask_from_to(ip, ip_to, cidr);
278 for (; !before(ip_to, ip); ip++) {

Completed in 110 milliseconds