Skip to content

Commit 92285a0

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nf_tables: correct NFT_LOGLEVEL_MAX value
should be same as NFT_LOGLEVEL_AUDIT, so use -, not +. Fixes: 7eced5a ("netfilter: nf_tables: add NFT_LOGLEVEL_* enumeration and use it") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent c6c9c05 commit 92285a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/linux/netfilter/nf_tables.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ enum nft_log_level {
11341134
NFT_LOGLEVEL_AUDIT,
11351135
__NFT_LOGLEVEL_MAX
11361136
};
1137-
#define NFT_LOGLEVEL_MAX (__NFT_LOGLEVEL_MAX + 1)
1137+
#define NFT_LOGLEVEL_MAX (__NFT_LOGLEVEL_MAX - 1)
11381138

11391139
/**
11401140
* enum nft_queue_attributes - nf_tables queue expression netlink attributes

0 commit comments

Comments
 (0)