Lines Matching defs:elem
73 hash_netport4_do_data_match(const struct hash_netport4_elem *elem)
75 return elem->nomatch ? -ENOTEMPTY : 1;
79 hash_netport4_data_set_flags(struct hash_netport4_elem *elem, u32 flags)
81 elem->nomatch = !!((flags >> 16) & IPSET_FLAG_NOMATCH);
85 hash_netport4_data_reset_flags(struct hash_netport4_elem *elem, u8 *flags)
87 swap(*flags, elem->nomatch);
91 hash_netport4_data_netmask(struct hash_netport4_elem *elem, u8 cidr)
93 elem->ip &= ip_set_netmask(cidr);
94 elem->cidr = cidr - 1;
290 hash_netport6_do_data_match(const struct hash_netport6_elem *elem)
292 return elem->nomatch ? -ENOTEMPTY : 1;
296 hash_netport6_data_set_flags(struct hash_netport6_elem *elem, u32 flags)
298 elem->nomatch = !!((flags >> 16) & IPSET_FLAG_NOMATCH);
302 hash_netport6_data_reset_flags(struct hash_netport6_elem *elem, u8 *flags)
304 swap(*flags, elem->nomatch);
308 hash_netport6_data_netmask(struct hash_netport6_elem *elem, u8 cidr)
310 ip6_netmask(&elem->ip, cidr);
311 elem->cidr = cidr - 1;