Skip to content

Commit

Permalink
netfilter: nft_ct: add missing ifdef for NFT_MARK setting
Browse files Browse the repository at this point in the history
The set operation for ct mark is only valid if CONFIG_NF_CONNTRACK_MARK is
enabled.

Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
kaber authored and Pablo Neira Ayuso committed Apr 2, 2014
1 parent b1586f0 commit e88e514
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/netfilter/nft_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ static int nft_ct_init_validate_get(const struct nft_expr *expr,
static int nft_ct_init_validate_set(uint32_t key)
{
switch (key) {
#ifdef CONFIG_NF_CONNTRACK_MARK
case NFT_CT_MARK:
break;
#endif
default:
return -EOPNOTSUPP;
}
Expand Down

0 comments on commit e88e514

Please sign in to comment.