Home
last modified time | relevance | path

Searched refs:ip2_from (Results 1 – 2 of 2) sorted by relevance

/linux/net/netfilter/ipset/
H A Dip_set_hash_netnet.c176 u32 ip2 = 0, ip2_from = 0, ip2_to = 0, i = 0; in hash_netnet4_uadt() local
191 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); in hash_netnet4_uadt()
221 e.ip[1] = htonl(ip2_from & ntohl(h->bitmask.ip) & ip_set_hostmask(e.cidr[1])); in hash_netnet4_uadt()
240 ip2_to = ip2_from; 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()
257 ip2 = ip2_from; in hash_netnet4_uadt()
277 ip2 = ip2_from; in hash_netnet4_uadt()
H A Dip_set_hash_ipportnet.c168 u32 ip2_from = 0, ip2_to = 0, ip2, i = 0; in hash_ipportnet4_uadt() local
190 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); in hash_ipportnet4_uadt()
228 e.ip2 = htonl(ip2_from & ip_set_hostmask(e.cidr + 1)); in hash_ipportnet4_uadt()
256 ip2_to = ip2_from; 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()
275 ip2 = ip2_from; in hash_ipportnet4_uadt()
298 ip2 = ip2_from; in hash_ipportnet4_uadt()