Lines Matching defs:elem
61 hash_net4_do_data_match(const struct hash_net4_elem *elem)
63 return elem->nomatch ? -ENOTEMPTY : 1;
67 hash_net4_data_set_flags(struct hash_net4_elem *elem, u32 flags)
69 elem->nomatch = (flags >> 16) & IPSET_FLAG_NOMATCH;
73 hash_net4_data_reset_flags(struct hash_net4_elem *elem, u8 *flags)
75 swap(*flags, elem->nomatch);
79 hash_net4_data_netmask(struct hash_net4_elem *elem, u8 cidr)
81 elem->ip &= ip_set_netmask(cidr);
82 elem->cidr = cidr;
232 hash_net6_do_data_match(const struct hash_net6_elem *elem)
234 return elem->nomatch ? -ENOTEMPTY : 1;
238 hash_net6_data_set_flags(struct hash_net6_elem *elem, u32 flags)
240 elem->nomatch = (flags >> 16) & IPSET_FLAG_NOMATCH;
244 hash_net6_data_reset_flags(struct hash_net6_elem *elem, u8 *flags)
246 swap(*flags, elem->nomatch);
250 hash_net6_data_netmask(struct hash_net6_elem *elem, u8 cidr)
252 ip6_netmask(&elem->ip, cidr);
253 elem->cidr = cidr;