Home
last modified time | relevance | path

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

/linux-6.12.1/net/netfilter/ipset/
Dip_set_hash_ip.c107 u32 ip = 0, ip_to = 0, hosts, i = 0; in hash_ip4_uadt() local
132 ip_to = ip; in hash_ip4_uadt()
134 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt()
137 if (ip > ip_to) { in hash_ip4_uadt()
138 if (ip_to == 0) in hash_ip4_uadt()
140 swap(ip, ip_to); in hash_ip4_uadt()
147 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ip4_uadt()
154 for (; ip <= ip_to; i++) { in hash_ip4_uadt()
Dip_set_hash_ipmark.c104 u32 ip, ip_to = 0, i = 0; in hash_ipmark4_uadt() local
133 ip_to = ip = ntohl(e.ip); in hash_ipmark4_uadt()
135 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
138 if (ip > ip_to) { in hash_ipmark4_uadt()
139 if (e.mark == 0 && ip_to == 0) in hash_ipmark4_uadt()
141 swap(ip, ip_to); in hash_ipmark4_uadt()
148 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipmark4_uadt()
153 for (; ip <= ip_to; ip++, i++) { 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.c143 u32 ip = 0, ip_to = 0, i = 0; in hash_net4_uadt() local
181 ip_to = ip; in hash_net4_uadt()
183 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_net4_uadt()
186 if (ip_to < ip) in hash_net4_uadt()
187 swap(ip, ip_to); in hash_net4_uadt()
188 if (ip + UINT_MAX == ip_to) in hash_net4_uadt()
201 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_net4_uadt()
207 } while (ip++ < ip_to); in hash_net4_uadt()
Dip_set_hash_netnet.c173 u32 ip = 0, ip_to = 0; in hash_netnet4_uadt() local
225 ip_to = ip; in hash_netnet4_uadt()
227 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netnet4_uadt()
230 if (ip_to < ip) in hash_netnet4_uadt()
231 swap(ip, ip_to); in hash_netnet4_uadt()
232 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netnet4_uadt()
235 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netnet4_uadt()
260 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netnet4_uadt()
276 } while (ip++ < ip_to); in hash_netnet4_uadt()
Dip_set_hash_netport.c161 u32 port, port_to, p = 0, ip = 0, ip_to = 0, i = 0; in hash_netport4_uadt() local
228 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netport4_uadt()
231 if (ip_to < ip) in hash_netport4_uadt()
232 swap(ip, ip_to); in hash_netport4_uadt()
233 if (ip + UINT_MAX == ip_to) in hash_netport4_uadt()
236 ip_set_mask_from_to(ip, ip_to, e.cidr + 1); in hash_netport4_uadt()
247 ip = ip_set_range_to_cidr(ip, ip_to, &cidr); in hash_netport4_uadt()
262 } while (ip++ < ip_to); in hash_netport4_uadt()
Dip_set_hash_netiface.c205 u32 ip = 0, ip_to = 0, i = 0; in hash_netiface4_uadt() local
249 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netiface4_uadt()
252 if (ip_to < ip) in hash_netiface4_uadt()
253 swap(ip, ip_to); in hash_netiface4_uadt()
254 if (ip + UINT_MAX == ip_to) in hash_netiface4_uadt()
257 ip_set_mask_from_to(ip, ip_to, e.cidr); in hash_netiface4_uadt()
269 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_netiface4_uadt()
276 } while (ip++ < ip_to); in hash_netiface4_uadt()
Dip_set_hash_ipportip.c115 u32 ip, ip_to = 0, p = 0, port, port_to, i = 0; in hash_ipportip4_uadt() local
161 ip_to = ip = ntohl(e.ip); in hash_ipportip4_uadt()
163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportip4_uadt()
166 if (ip > ip_to) in hash_ipportip4_uadt()
167 swap(ip, ip_to); in hash_ipportip4_uadt()
173 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportip4_uadt()
185 for (; ip <= ip_to; ip++) { in hash_ipportip4_uadt()
Dip_set_hash_ipport.c119 u32 ip, ip_to = 0, p = 0, port, port_to, i = 0; in hash_ipport4_uadt() local
165 ip_to = ip = ntohl(e.ip); in hash_ipport4_uadt()
167 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipport4_uadt()
170 if (ip > ip_to) in hash_ipport4_uadt()
171 swap(ip, ip_to); in hash_ipport4_uadt()
177 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipport4_uadt()
189 for (; ip <= ip_to; ip++) { in hash_ipport4_uadt()
Dip_set_hash_netportnet.c195 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_netportnet4_uadt() local
266 ip_to = ip; in hash_netportnet4_uadt()
268 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_netportnet4_uadt()
271 if (ip > ip_to) in hash_netportnet4_uadt()
272 swap(ip, ip_to); in hash_netportnet4_uadt()
273 if (unlikely(ip + UINT_MAX == ip_to)) in hash_netportnet4_uadt()
276 ip_set_mask_from_to(ip, ip_to, e.cidr[0]); in hash_netportnet4_uadt()
310 ip = hash_netportnet4_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netportnet4_uadt()
332 } while (ip++ < ip_to); in hash_netportnet4_uadt()
Dip_set_hash_ipportnet.c167 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local
234 ip_to = ip; in hash_ipportnet4_uadt()
236 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipportnet4_uadt()
239 if (ip > ip_to) in hash_ipportnet4_uadt()
240 swap(ip, ip_to); in hash_ipportnet4_uadt()
246 ip_set_mask_from_to(ip, ip_to, cidr); in hash_ipportnet4_uadt()
277 for (; ip <= ip_to; ip++) { in hash_ipportnet4_uadt()