aboutsummaryrefslogtreecommitdiff
path: root/net/netfilter/nft_ct.c
diff options
context:
space:
mode:
authorGravatar Patrick McHardy <kaber@trash.net> 2014-03-29 10:43:01 +0000
committerGravatar Pablo Neira Ayuso <pablo@gnumonks.org> 2014-04-02 21:29:07 +0200
commite88e514e1fde119b567ff15b215d58b93722697c (patch)
treea0ecee6c83cd1d88014aca967ee067595b5369e0 /net/netfilter/nft_ct.c
parentnetpoll: Use skb_irq_freeable to make zap_completion_queue safe. (diff)
downloadlinux-e88e514e1fde119b567ff15b215d58b93722697c.tar.gz
linux-e88e514e1fde119b567ff15b215d58b93722697c.tar.bz2
linux-e88e514e1fde119b567ff15b215d58b93722697c.zip
netfilter: nft_ct: add missing ifdef for NFT_MARK setting
The set operation for ct mark is only valid if CONFIG_NF_CONNTRACK_MARK is enabled. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_ct.c')
-rw-r--r--net/netfilter/nft_ct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index bd0d41e69341..a2c45bd8691c 100644
--- a/net/netfilter/nft_ct.c
+++ b/net/netfilter/nft_ct.c
@@ -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;
}