Searched refs:ip2_to (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_hash_netnet.c | 174 u32 ip2 = 0, ip2_from = 0, ip2_to = 0, i = 0; in hash_netnet4_uadt() local 238 ip2_to = ip2_from; in hash_netnet4_uadt() 240 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2_TO], &ip2_to); in hash_netnet4_uadt() 243 if (ip2_to < ip2_from) in hash_netnet4_uadt() 244 swap(ip2_from, ip2_to); in hash_netnet4_uadt() 245 if (unlikely(ip2_from + UINT_MAX == ip2_to)) in hash_netnet4_uadt() 248 ip_set_mask_from_to(ip2_from, ip2_to, e.cidr[1]); in hash_netnet4_uadt() 268 ip2 = ip_set_range_to_cidr(ip2, ip2_to, &e.cidr[1]); in hash_netnet4_uadt() 274 } while (ip2++ < ip2_to); in hash_netnet4_uadt()
|
H A D | ip_set_hash_ipportnet.c | 168 u32 ip2_from = 0, ip2_to = 0, ip2, i = 0; in hash_ipportnet4_uadt() local 256 ip2_to = ip2_from; in hash_ipportnet4_uadt() 258 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2_TO], &ip2_to); in hash_ipportnet4_uadt() 261 if (ip2_from > ip2_to) in hash_ipportnet4_uadt() 262 swap(ip2_from, ip2_to); in hash_ipportnet4_uadt() 263 if (ip2_from + UINT_MAX == ip2_to) in hash_ipportnet4_uadt() 266 ip_set_mask_from_to(ip2_from, ip2_to, e.cidr + 1); in hash_ipportnet4_uadt() 284 ip2 = ip_set_range_to_cidr(ip2, ip2_to, &cidr); in hash_ipportnet4_uadt() 297 } while (ip2++ < ip2_to); in hash_ipportnet4_uadt()
|
H A D | ip_set_hash_netportnet.c | 196 u32 ip2_from = 0, ip2_to = 0, ip2, i = 0; in hash_netportnet4_uadt() local 286 ip2_to = ip2_from; in hash_netportnet4_uadt() 288 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2_TO], &ip2_to); in hash_netportnet4_uadt() 291 if (ip2_from > ip2_to) in hash_netportnet4_uadt() 292 swap(ip2_from, ip2_to); in hash_netportnet4_uadt() 293 if (unlikely(ip2_from + UINT_MAX == ip2_to)) in hash_netportnet4_uadt() 296 ip_set_mask_from_to(ip2_from, ip2_to, e.cidr[1]); in hash_netportnet4_uadt() 322 ip2_to, &e.cidr[1]); in hash_netportnet4_uadt() 328 } while (ip2++ < ip2_to); in hash_netportnet4_uadt()
|