projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1586f0
)
netfilter: nft_ct: add missing ifdef for NFT_MARK setting
author
Patrick McHardy
<kaber@trash.net>
Sat, 29 Mar 2014 10:43:01 +0000
(10:43 +0000)
committer
Pablo 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
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nft_ct.c
b/net/netfilter/nft_ct.c
index bd0d41e693416167b4f149f64117e440a5134496..a2c45bd8691c405fa0f12cff496344f5a3bbf7d6 100644
(file)
--- 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;
}