Lines Matching refs:ip

52 	__be32 ip;  member
66 return ip1->ip == ip2->ip && in hash_netport4_data_equal()
93 elem->ip &= ip_set_netmask(cidr); in hash_netport4_data_netmask()
103 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_netport4_data_list()
120 next->ip = d->ip; in hash_netport4_data_next()
147 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netport4_kadt()
148 e.ip &= ip_set_netmask(e.cidr + 1); in hash_netport4_kadt()
161 u32 port, port_to, p = 0, ip = 0, ip_to = 0, i = 0; in hash_netport4_uadt() local
175 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netport4_uadt()
215 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); 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()
240 ip = ntohl(h->next.ip); in hash_netport4_uadt()
246 e.ip = htonl(ip); 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()
269 union nf_inet_addr ip; member
283 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal()
310 ip6_netmask(&elem->ip, cidr); in hash_netport6_data_netmask()
320 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netport6_data_list()
367 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netport6_kadt()
368 ip6_netmask(&e.ip, e.cidr + 1); in hash_netport6_kadt()
397 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP], &e.ip); in hash_netport6_uadt()
411 ip6_netmask(&e.ip, e.cidr + 1); in hash_netport6_uadt()