Lines Matching refs:ip

48 	__be32 ip;  member
57 __be32 ip; member
73 return ip1->ip == ip2->ip && in hash_netiface4_data_equal()
103 elem->ip &= ip_set_netmask(cidr); in hash_netiface4_data_netmask()
116 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_netiface4_data_list()
132 next->ip = d->ip; in hash_netiface4_data_next()
172 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netiface4_kadt()
173 e.ip &= ip_set_netmask(e.cidr); in hash_netiface4_kadt()
205 u32 ip = 0, ip_to = 0, i = 0; in hash_netiface4_uadt() local
216 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netiface4_uadt()
242 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_netiface4_uadt()
252 if (ip_to < ip) in hash_netiface4_uadt()
253 swap(ip, ip_to); in hash_netiface4_uadt()
254 if (ip + UINT_MAX == ip_to) in hash_netiface4_uadt()
257 ip_set_mask_from_to(ip, ip_to, e.cidr); in hash_netiface4_uadt()
261 ip = ntohl(h->next.ip); in hash_netiface4_uadt()
264 e.ip = htonl(ip); in hash_netiface4_uadt()
269 ip = ip_set_range_to_cidr(ip, ip_to, &e.cidr); in hash_netiface4_uadt()
276 } while (ip++ < ip_to); in hash_netiface4_uadt()
283 union nf_inet_addr ip; member
291 union nf_inet_addr ip; member
307 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal()
337 ip6_netmask(&elem->ip, cidr); in hash_netiface6_data_netmask()
350 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netiface6_data_list()
393 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netiface6_kadt()
394 ip6_netmask(&e.ip, e.cidr); in hash_netiface6_kadt()
435 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP], &e.ip); in hash_netiface6_uadt()
449 ip6_netmask(&e.ip, e.cidr); in hash_netiface6_uadt()