diff options
Diffstat (limited to 'include/libnftnl/rule.h')
-rw-r--r-- | include/libnftnl/rule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftnl/rule.h b/include/libnftnl/rule.h index 4033d3c..13e6c14 100644 --- a/include/libnftnl/rule.h +++ b/include/libnftnl/rule.h @@ -26,7 +26,9 @@ enum { NFT_RULE_ATTR_COMPAT_PROTO, NFT_RULE_ATTR_COMPAT_FLAGS, NFT_RULE_ATTR_POSITION, + __NFT_RULE_ATTR_MAX }; +#define NFT_RULE_ATTR_MAX (__NFT_RULE_ATTR_MAX - 1) void nft_rule_attr_unset(struct nft_rule *r, uint16_t attr); bool nft_rule_attr_is_set(const struct nft_rule *r, uint16_t attr); |