Home
last modified time | relevance | path

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

/Linux-v5.4/net/netfilter/ipset/
Dip_set_hash_ip.c104 u32 ip = 0, ip_to = 0, hosts; in hash_ip4_uadt() local
129 ip_to = ip; in hash_ip4_uadt()
131 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt()
134 if (ip > ip_to) in hash_ip4_uadt()
135 swap(ip, ip_to); in hash_ip4_uadt()
141 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ip4_uadt()
150 for (; ip <= ip_to;) { in hash_ip4_uadt()
Dip_set_hash_ipmark.c103 u32 ip, ip_to = 0; in hash_ipmark4_uadt() local
130 ip_to = ip = ntohl(e.ip); in hash_ipmark4_uadt()
132 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
135 if (ip > ip_to) in hash_ipmark4_uadt()
136 swap(ip, ip_to); in hash_ipmark4_uadt()
142 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipmark4_uadt()
147 for (; ip <= ip_to; ip++) { in hash_ipmark4_uadt()
Dip_set_bitmap_ip.c135 u32 ip = 0, ip_to = 0; in bitmap_ip_uadt() local
163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in bitmap_ip_uadt()
166 if (ip > ip_to) { in bitmap_ip_uadt()
167 swap(ip, ip_to); in bitmap_ip_uadt()
176 ip_set_mask_from_to(ip, ip_to, cidr); in bitmap_ip_uadt()
178 ip_to = ip; in bitmap_ip_uadt()
181 if (ip_to > map->last_ip) in bitmap_ip_uadt()
184 for (; !before(ip_to, ip); ip += map->hosts) { in bitmap_ip_uadt()
Dip_set_hash_net.c142 u32 ip = 0, ip_to = 0; in hash_net4_uadt() local
180 ip_to = ip; in hash_net4_uadt()
182 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_net4_uadt()
185 if (ip_to < ip) in hash_net4_uadt()
186 swap(ip, ip_to); in hash_net4_uadt()
187 if (ip + UINT_MAX == ip_to) in hash_net4_uadt()
194 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_net4_uadt()
200 } while (ip++ < ip_to); in hash_net4_uadt()
Dip_set_hash_ipport.c111 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipport4_uadt() local
153 ip_to = ip = ntohl(e.ip); in hash_ipport4_uadt()
155 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt()
158 if (ip > ip_to) in hash_ipport4_uadt()
159 swap(ip, ip_to); in hash_ipport4_uadt()
165 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipport4_uadt()
177 for (; ip <= ip_to; ip++) { in hash_ipport4_uadt()
Dip_set_hash_netnet.c169 u32 ip = 0, ip_to = 0; in hash_netnet4_uadt() local
221 ip_to = ip; in hash_netnet4_uadt()
223 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netnet4_uadt()
226 if (ip_to < ip) in hash_netnet4_uadt()
227 swap(ip, ip_to); in hash_netnet4_uadt()
228 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netnet4_uadt()
231 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netnet4_uadt()
256 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netnet4_uadt()
267 } while (ip++ < ip_to); in hash_netnet4_uadt()
Dip_set_hash_netiface.c199 u32 ip = 0, ip_to = 0; in hash_netiface4_uadt() local
241 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netiface4_uadt()
244 if (ip_to < ip) in hash_netiface4_uadt()
245 swap(ip, ip_to); in hash_netiface4_uadt()
246 if (ip + UINT_MAX == ip_to) in hash_netiface4_uadt()
249 ip_set_mask_from_to(ip, ip_to, e.cidr); in hash_netiface4_uadt()
256 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_netiface4_uadt()
263 } while (ip++ < ip_to); in hash_netiface4_uadt()
Dip_set_hash_ipportip.c114 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipportip4_uadt() local
160 ip_to = ip = ntohl(e.ip); in hash_ipportip4_uadt()
162 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportip4_uadt()
165 if (ip > ip_to) in hash_ipportip4_uadt()
166 swap(ip, ip_to); in hash_ipportip4_uadt()
172 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportip4_uadt()
184 for (; ip <= ip_to; ip++) { in hash_ipportip4_uadt()
Dip_set_hash_netport.c160 u32 port, port_to, p = 0, ip = 0, ip_to = 0; in hash_netport4_uadt() local
227 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netport4_uadt()
230 if (ip_to < ip) in hash_netport4_uadt()
231 swap(ip, ip_to); in hash_netport4_uadt()
232 if (ip + UINT_MAX == ip_to) in hash_netport4_uadt()
235 ip_set_mask_from_to(ip, ip_to, e.cidr + 1); in hash_netport4_uadt()
246 ip = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netport4_uadt()
257 } while (ip++ < ip_to); in hash_netport4_uadt()
Dip_set_hash_netportnet.c183 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_netportnet4_uadt() local
254 ip_to = ip; in hash_netportnet4_uadt()
256 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netportnet4_uadt()
259 if (ip > ip_to) in hash_netportnet4_uadt()
260 swap(ip, ip_to); in hash_netportnet4_uadt()
261 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netportnet4_uadt()
264 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netportnet4_uadt()
298 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netportnet4_uadt()
314 } while (ip++ < ip_to); in hash_netportnet4_uadt()
Dip_set_hash_ipportnet.c166 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local
233 ip_to = ip; in hash_ipportnet4_uadt()
235 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportnet4_uadt()
238 if (ip > ip_to) in hash_ipportnet4_uadt()
239 swap(ip, ip_to); in hash_ipportnet4_uadt()
245 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportnet4_uadt()
276 for (; ip <= ip_to; ip++) { in hash_ipportnet4_uadt()