Explorar o código

act_connmark: fix dependencies better

NET_ACT_CONNMARK fails to build if NF_CONNTRACK_MARK is disabled,
and d7924450e14ea4 ("act_connmark: Add missing dependency on
NF_CONNTRACK_MARK") fixed that case, but missed the cased where
NF_CONNTRACK is a loadable module.

This adds the second dependency to ensure that NET_ACT_CONNMARK
can only be built-in if NF_CONNTRACK is also part of the kernel
rather than a loadable module.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Arnd Bergmann %!s(int64=10) %!d(string=hai) anos
pai
achega
2dbce096ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/sched/Kconfig

+ 1 - 1
net/sched/Kconfig

@@ -713,7 +713,7 @@ config NET_ACT_BPF
 config NET_ACT_CONNMARK
 config NET_ACT_CONNMARK
         tristate "Netfilter Connection Mark Retriever"
         tristate "Netfilter Connection Mark Retriever"
         depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
         depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
-        depends on NF_CONNTRACK_MARK
+        depends on NF_CONNTRACK && NF_CONNTRACK_MARK
         ---help---
         ---help---
 	  Say Y here to allow retrieving of conn mark
 	  Say Y here to allow retrieving of conn mark