Lines Matching refs:ip

46 		__be32 ip[2];  member
94 elem->ip[1] = orig->ip[1]; in hash_netportnet4_data_reset_elem()
102 elem->ip[1] &= ip_set_netmask(cidr); in hash_netportnet4_data_netmask()
105 elem->ip[0] &= ip_set_netmask(cidr); in hash_netportnet4_data_netmask()
116 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip[0]) || in hash_netportnet4_data_list()
117 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip[1]) || in hash_netportnet4_data_list()
169 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt()
170 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt()
171 e.ip[0] &= ip_set_netmask(e.cidr[0]); in hash_netportnet4_kadt()
172 e.ip[1] &= ip_set_netmask(e.cidr[1]); in hash_netportnet4_kadt()
195 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_netportnet4_uadt() local
210 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netportnet4_uadt()
259 e.ip[0] = htonl(ip & ip_set_hostmask(e.cidr[0])); in hash_netportnet4_uadt()
260 e.ip[1] = htonl(ip2_from & ip_set_hostmask(e.cidr[1])); in hash_netportnet4_uadt()
266 ip_to = ip; 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()
300 ip = ntohl(h->next.ip[0]); in hash_netportnet4_uadt()
302 ip2 = ntohl(h->next.ip[1]); in hash_netportnet4_uadt()
309 e.ip[0] = htonl(ip); in hash_netportnet4_uadt()
310 ip = hash_netportnet4_range_to_cidr(ip, ip_to, &e.cidr[0]); in hash_netportnet4_uadt()
315 e.ip[1] = htonl(ip2); in hash_netportnet4_uadt()
332 } while (ip++ < ip_to); in hash_netportnet4_uadt()
339 union nf_inet_addr ip[2]; member
357 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netportnet6_data_equal()
358 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netportnet6_data_equal()
386 elem->ip[1] = orig->ip[1]; in hash_netportnet6_data_reset_elem()
394 ip6_netmask(&elem->ip[1], cidr); in hash_netportnet6_data_netmask()
397 ip6_netmask(&elem->ip[0], cidr); in hash_netportnet6_data_netmask()
408 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netportnet6_data_list()
409 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netportnet6_data_list()
464 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt()
465 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1].in6); in hash_netportnet6_kadt()
466 ip6_netmask(&e.ip[0], e.cidr[0]); in hash_netportnet6_kadt()
467 ip6_netmask(&e.ip[1], e.cidr[1]); in hash_netportnet6_kadt()
496 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP], &e.ip[0]); in hash_netportnet6_uadt()
500 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP2], &e.ip[1]); in hash_netportnet6_uadt()
520 ip6_netmask(&e.ip[0], e.cidr[0]); in hash_netportnet6_uadt()
521 ip6_netmask(&e.ip[1], e.cidr[1]); in hash_netportnet6_uadt()