[NETFILTER]: x_tables: fix dependencies of conntrack related modules

NF_CONNTRACK_MARK is bool and depends on NF_CONNTRACK which is
tristate. If a variable depends on NF_CONNTRACK_MARK and doesn't take
care about NF_CONNTRACK, it can be y even if NF_CONNTRACK isn't y.
NF_CT_ACCT have same issue, too.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Yasuyuki Kozakai and committed by David S. Miller deac0ccd 9c92d348

+3 -3
+3 -3
net/netfilter/Kconfig
··· 126 126 tristate '"CONNMARK" target support' 127 127 depends on NETFILTER_XTABLES 128 128 depends on IP_NF_MANGLE || IP6_NF_MANGLE 129 - depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK_IPV4) 129 + depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK) 130 130 help 131 131 This option adds a `CONNMARK' target, which allows one to manipulate 132 132 the connection mark value. Similar to the MARK target, but ··· 187 187 config NETFILTER_XT_MATCH_CONNBYTES 188 188 tristate '"connbytes" per-connection counter match support' 189 189 depends on NETFILTER_XTABLES 190 - depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || NF_CT_ACCT 190 + depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK) 191 191 help 192 192 This option adds a `connbytes' match, which allows you to match the 193 193 number of bytes and/or packets for each direction within a connection. ··· 198 198 config NETFILTER_XT_MATCH_CONNMARK 199 199 tristate '"connmark" connection mark match support' 200 200 depends on NETFILTER_XTABLES 201 - depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || NF_CONNTRACK_MARK 201 + depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK) 202 202 help 203 203 This option adds a `connmark' match, which allows you to match the 204 204 connection mark value previously set for the session by `CONNMARK'.