Home
last modified time | relevance | path

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

/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_ip.c109 u32 ip = 0, ip_to = 0, hosts; in hash_ip4_uadt() local
138 ip_to = ip; in hash_ip4_uadt()
140 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt()
143 if (ip > ip_to) in hash_ip4_uadt()
144 swap(ip, ip_to); in hash_ip4_uadt()
150 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ip4_uadt()
157 for (; !before(ip_to, ip); ip += hosts) { in hash_ip4_uadt()
Dip_set_hash_ipmark.c110 u32 ip, ip_to = 0; in hash_ipmark4_uadt() local
140 ip_to = ip = ntohl(e.ip); in hash_ipmark4_uadt()
142 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
145 if (ip > ip_to) in hash_ipmark4_uadt()
146 swap(ip, ip_to); in hash_ipmark4_uadt()
152 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipmark4_uadt()
157 for (; !before(ip_to, ip); ip++) { in hash_ipmark4_uadt()
Dip_set_bitmap_ip.c135 u32 ip = 0, ip_to = 0; in bitmap_ip_uadt() local
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in bitmap_ip_uadt()
169 if (ip > ip_to) { in bitmap_ip_uadt()
170 swap(ip, ip_to); in bitmap_ip_uadt()
179 ip_set_mask_from_to(ip, ip_to, cidr); in bitmap_ip_uadt()
181 ip_to = ip; in bitmap_ip_uadt()
183 if (ip_to > map->last_ip) in bitmap_ip_uadt()
186 for (; !before(ip_to, ip); ip += map->hosts) { in bitmap_ip_uadt()
Dip_set_hash_net.c147 u32 ip = 0, ip_to = 0, last; in hash_net4_uadt() local
187 ip_to = ip; in hash_net4_uadt()
189 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_net4_uadt()
192 if (ip_to < ip) in hash_net4_uadt()
193 swap(ip, ip_to); in hash_net4_uadt()
194 if (ip + UINT_MAX == ip_to) in hash_net4_uadt()
199 while (!after(ip, ip_to)) { in hash_net4_uadt()
201 last = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_net4_uadt()
Dip_set_hash_netnet.c166 u32 ip = 0, ip_to = 0, last; in hash_netnet4_uadt() local
220 ip_to = ip; in hash_netnet4_uadt()
222 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netnet4_uadt()
225 if (ip_to < ip) in hash_netnet4_uadt()
226 swap(ip, ip_to); in hash_netnet4_uadt()
227 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netnet4_uadt()
230 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netnet4_uadt()
247 while (!after(ip, ip_to)) { in hash_netnet4_uadt()
249 last = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netnet4_uadt()
Dip_set_hash_ipport.c117 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipport4_uadt() local
164 ip_to = ip = ntohl(e.ip); in hash_ipport4_uadt()
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt()
169 if (ip > ip_to) in hash_ipport4_uadt()
170 swap(ip, ip_to); in hash_ipport4_uadt()
176 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipport4_uadt()
188 for (; !before(ip_to, ip); ip++) { in hash_ipport4_uadt()
Dip_set_hash_ipportip.c119 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipportip4_uadt() local
170 ip_to = ip = ntohl(e.ip); in hash_ipportip4_uadt()
172 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportip4_uadt()
175 if (ip > ip_to) in hash_ipportip4_uadt()
176 swap(ip, ip_to); in hash_ipportip4_uadt()
182 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportip4_uadt()
194 for (; !before(ip_to, ip); ip++) { in hash_ipportip4_uadt()
Dip_set_hash_netport.c165 u32 port, port_to, p = 0, ip = 0, ip_to = 0, last; in hash_netport4_uadt() local
236 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netport4_uadt()
239 if (ip_to < ip) in hash_netport4_uadt()
240 swap(ip, ip_to); in hash_netport4_uadt()
241 if (ip + UINT_MAX == ip_to) in hash_netport4_uadt()
244 ip_set_mask_from_to(ip, ip_to, e.cidr + 1); in hash_netport4_uadt()
248 while (!after(ip, ip_to)) { in hash_netport4_uadt()
250 last = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netport4_uadt()
Dip_set_hash_netportnet.c181 u32 ip = 0, ip_to = 0, ip_last, p = 0, port, port_to; in hash_netportnet4_uadt() local
256 ip_to = ip; in hash_netportnet4_uadt()
258 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netportnet4_uadt()
261 if (ip > ip_to) in hash_netportnet4_uadt()
262 swap(ip, ip_to); in hash_netportnet4_uadt()
263 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netportnet4_uadt()
266 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netportnet4_uadt()
290 while (!after(ip, ip_to)) { in hash_netportnet4_uadt()
292 ip_last = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netportnet4_uadt()
Dip_set_hash_netiface.c293 u32 ip = 0, ip_to = 0, last; in hash_netiface4_uadt() local
349 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netiface4_uadt()
352 if (ip_to < ip) in hash_netiface4_uadt()
353 swap(ip, ip_to); in hash_netiface4_uadt()
354 if (ip + UINT_MAX == ip_to) in hash_netiface4_uadt()
357 ip_set_mask_from_to(ip, ip_to, e.cidr); in hash_netiface4_uadt()
361 while (!after(ip, ip_to)) { in hash_netiface4_uadt()
363 last = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_netiface4_uadt()
Dip_set_hash_ipportnet.c171 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local
242 ip_to = ip; in hash_ipportnet4_uadt()
244 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportnet4_uadt()
247 if (ip > ip_to) in hash_ipportnet4_uadt()
248 swap(ip, ip_to); in hash_ipportnet4_uadt()
254 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportnet4_uadt()
278 for (; !before(ip_to, ip); ip++) { in hash_ipportnet4_uadt()