Lines Matching defs:elem
76 hash_ipportnet4_do_data_match(const struct hash_ipportnet4_elem *elem)
78 return elem->nomatch ? -ENOTEMPTY : 1;
82 hash_ipportnet4_data_set_flags(struct hash_ipportnet4_elem *elem, u32 flags)
84 elem->nomatch = !!((flags >> 16) & IPSET_FLAG_NOMATCH);
88 hash_ipportnet4_data_reset_flags(struct hash_ipportnet4_elem *elem, u8 *flags)
90 swap(*flags, elem->nomatch);
94 hash_ipportnet4_data_netmask(struct hash_ipportnet4_elem *elem, u8 cidr)
96 elem->ip2 &= ip_set_netmask(cidr);
97 elem->cidr = cidr - 1;
331 hash_ipportnet6_do_data_match(const struct hash_ipportnet6_elem *elem)
333 return elem->nomatch ? -ENOTEMPTY : 1;
337 hash_ipportnet6_data_set_flags(struct hash_ipportnet6_elem *elem, u32 flags)
339 elem->nomatch = !!((flags >> 16) & IPSET_FLAG_NOMATCH);
343 hash_ipportnet6_data_reset_flags(struct hash_ipportnet6_elem *elem, u8 *flags)
345 swap(*flags, elem->nomatch);
349 hash_ipportnet6_data_netmask(struct hash_ipportnet6_elem *elem, u8 cidr)
351 ip6_netmask(&elem->ip2, cidr);
352 elem->cidr = cidr - 1;