Skip to content

Commit e88e514

Browse files
kaberPablo Neira Ayuso
authored andcommitted
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>
1 parent b1586f0 commit e88e514

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/netfilter/nft_ct.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ static int nft_ct_init_validate_get(const struct nft_expr *expr,
268268
static int nft_ct_init_validate_set(uint32_t key)
269269
{
270270
switch (key) {
271+
#ifdef CONFIG_NF_CONNTRACK_MARK
271272
case NFT_CT_MARK:
272273
break;
274+
#endif
273275
default:
274276
return -EOPNOTSUPP;
275277
}

0 commit comments

Comments
 (0)