Home
last modified time | relevance | path

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

/Linux-v4.19/net/netfilter/ipset/
Dip_set_hash_ipmark.c108 u32 ip, ip_to = 0; in hash_ipmark4_uadt() local
135 ip_to = ip = ntohl(e.ip); in hash_ipmark4_uadt()
137 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
140 if (ip > ip_to) in hash_ipmark4_uadt()
141 swap(ip, ip_to); in hash_ipmark4_uadt()
147 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipmark4_uadt()
152 for (; ip <= ip_to; ip++) { in hash_ipmark4_uadt()
Dip_set_hash_ip.c108 u32 ip = 0, ip_to = 0, hosts; in hash_ip4_uadt() local
133 ip_to = ip; in hash_ip4_uadt()
135 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt()
138 if (ip > ip_to) in hash_ip4_uadt()
139 swap(ip, ip_to); in hash_ip4_uadt()
145 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ip4_uadt()
154 for (; ip <= ip_to;) { in hash_ip4_uadt()
Dip_set_bitmap_ip.c138 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()
184 if (ip_to > map->last_ip) in bitmap_ip_uadt()
187 for (; !before(ip_to, ip); ip += map->hosts) { in bitmap_ip_uadt()
Dip_set_hash_net.c146 u32 ip = 0, ip_to = 0; in hash_net4_uadt() local
184 ip_to = ip; in hash_net4_uadt()
186 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_net4_uadt()
189 if (ip_to < ip) in hash_net4_uadt()
190 swap(ip, ip_to); in hash_net4_uadt()
191 if (ip + UINT_MAX == ip_to) in hash_net4_uadt()
198 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_net4_uadt()
204 } while (ip++ < ip_to); in hash_net4_uadt()
Dip_set_hash_ipport.c115 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipport4_uadt() local
157 ip_to = ip = ntohl(e.ip); in hash_ipport4_uadt()
159 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt()
162 if (ip > ip_to) in hash_ipport4_uadt()
163 swap(ip, ip_to); in hash_ipport4_uadt()
169 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipport4_uadt()
181 for (; ip <= ip_to; ip++) { in hash_ipport4_uadt()
Dip_set_hash_netnet.c172 u32 ip = 0, ip_to = 0; in hash_netnet4_uadt() local
224 ip_to = ip; in hash_netnet4_uadt()
226 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netnet4_uadt()
229 if (ip_to < ip) in hash_netnet4_uadt()
230 swap(ip, ip_to); in hash_netnet4_uadt()
231 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netnet4_uadt()
234 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netnet4_uadt()
259 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netnet4_uadt()
270 } while (ip++ < ip_to); in hash_netnet4_uadt()
Dip_set_hash_netiface.c203 u32 ip = 0, ip_to = 0; in hash_netiface4_uadt() local
245 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netiface4_uadt()
248 if (ip_to < ip) in hash_netiface4_uadt()
249 swap(ip, ip_to); in hash_netiface4_uadt()
250 if (ip + UINT_MAX == ip_to) in hash_netiface4_uadt()
253 ip_set_mask_from_to(ip, ip_to, e.cidr); in hash_netiface4_uadt()
260 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_netiface4_uadt()
267 } while (ip++ < ip_to); in hash_netiface4_uadt()
Dip_set_hash_ipportip.c118 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipportip4_uadt() local
164 ip_to = ip = ntohl(e.ip); in hash_ipportip4_uadt()
166 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportip4_uadt()
169 if (ip > ip_to) in hash_ipportip4_uadt()
170 swap(ip, ip_to); in hash_ipportip4_uadt()
176 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportip4_uadt()
188 for (; ip <= ip_to; ip++) { in hash_ipportip4_uadt()
Dip_set_hash_netport.c164 u32 port, port_to, p = 0, ip = 0, ip_to = 0; in hash_netport4_uadt() local
231 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netport4_uadt()
234 if (ip_to < ip) in hash_netport4_uadt()
235 swap(ip, ip_to); in hash_netport4_uadt()
236 if (ip + UINT_MAX == ip_to) in hash_netport4_uadt()
239 ip_set_mask_from_to(ip, ip_to, e.cidr + 1); in hash_netport4_uadt()
250 ip = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netport4_uadt()
261 } while (ip++ < ip_to); in hash_netport4_uadt()
Dip_set_hash_netportnet.c187 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_netportnet4_uadt() local
258 ip_to = ip; in hash_netportnet4_uadt()
260 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netportnet4_uadt()
263 if (ip > ip_to) in hash_netportnet4_uadt()
264 swap(ip, ip_to); in hash_netportnet4_uadt()
265 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netportnet4_uadt()
268 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netportnet4_uadt()
302 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netportnet4_uadt()
318 } while (ip++ < ip_to); in hash_netportnet4_uadt()
Dip_set_hash_ipportnet.c170 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local
237 ip_to = ip; in hash_ipportnet4_uadt()
239 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportnet4_uadt()
242 if (ip > ip_to) in hash_ipportnet4_uadt()
243 swap(ip, ip_to); in hash_ipportnet4_uadt()
249 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportnet4_uadt()
280 for (; ip <= ip_to; ip++) { in hash_ipportnet4_uadt()