netfilter: nft_ct: add missing ifdef for NFT_MARK setting
authorPatrick McHardy <kaber@trash.net>
Sat, 29 Mar 2014 10:43:01 +0000 (10:43 +0000)
committerPablo Neira Ayuso <pablo@gnumonks.org>
Wed, 2 Apr 2014 19:29:07 +0000 (21:29 +0200)
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>
net/netfilter/nft_ct.c

index bd0d41e693416167b4f149f64117e440a5134496..a2c45bd8691c405fa0f12cff496344f5a3bbf7d6 100644 (file)
@@ -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;
        }