Searched refs:ip2_to (Results 1 – 2 of 2) sorted by relevance
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_hash_netnet.c | 176 u32 ip2 = 0, ip2_from = 0, ip2_to = 0, i = 0; in hash_netnet4_uadt() local 240 ip2_to = ip2_from; in hash_netnet4_uadt() 242 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2_TO], &ip2_to); in hash_netnet4_uadt() 245 if (ip2_to < ip2_from) in hash_netnet4_uadt() 246 swap(ip2_from, ip2_to); in hash_netnet4_uadt() 247 if (unlikely(ip2_from + UINT_MAX == ip2_to)) in hash_netnet4_uadt() 250 ip_set_mask_from_to(ip2_from, ip2_to, e.cidr[1]); in hash_netnet4_uadt() 270 ip2 = ip_set_range_to_cidr(ip2, ip2_to, &e.cidr[1]); in hash_netnet4_uadt() 276 } 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()
|