From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [2.6 patch] ipv4/netfilter/Kconfig: simplify dependencies Date: Sat, 17 Jul 2004 18:53:04 +0200 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20040717165303.GE4759@fs.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, netfilter-devel@lists.netfilter.org Return-path: To: coreteam@netfilter.org Content-Disposition: inline List-Id: netfilter-devel.vger.kernel.org It seems that originating from the automatic Kconfig transition, some dependencies in ipv4/netfilter/Kconfig are correct, but too complicated. The patch below makes them a bit more simple. --- linux-2.6.8-rc1-mm1-full/net/ipv4/netfilter/Kconfig.old 2004-07-17 17:43:55.000000000 +0200 +++ linux-2.6.8-rc1-mm1-full/net/ipv4/netfilter/Kconfig 2004-07-17 18:12:43.000000000 +0200 @@ -307,7 +307,7 @@ config IP_NF_NAT_NEEDED bool - depends on IP_NF_CONNTRACK!=y && IP_NF_IPTABLES!=y && (IP_NF_COMPAT_IPCHAINS!=y && IP_NF_COMPAT_IPFWADM || IP_NF_COMPAT_IPCHAINS) || IP_NF_IPTABLES && IP_NF_CONNTRACK && IP_NF_NAT + depends on IP_NF_COMPAT_IPFWADM || IP_NF_COMPAT_IPCHAINS || IP_NF_NAT default y config IP_NF_TARGET_MASQUERADE @@ -392,19 +392,19 @@ # or $CONFIG_IP_NF_FTP (m or y), whichever is weaker. Argh. config IP_NF_NAT_FTP tristate - depends on IP_NF_IPTABLES!=n && IP_NF_CONNTRACK!=n && IP_NF_NAT!=n + depends on IP_NF_NAT!=n default IP_NF_NAT if IP_NF_FTP=y default m if IP_NF_FTP=m config IP_NF_NAT_TFTP tristate - depends on IP_NF_IPTABLES!=n && IP_NF_CONNTRACK!=n && IP_NF_NAT!=n + depends on IP_NF_NAT!=n default IP_NF_NAT if IP_NF_TFTP=y default m if IP_NF_TFTP=m config IP_NF_NAT_AMANDA tristate - depends on IP_NF_IPTABLES!=n && IP_NF_CONNTRACK!=n && IP_NF_NAT!=n + depends on IP_NF_NAT!=n default IP_NF_NAT if IP_NF_AMANDA=y default m if IP_NF_AMANDA=m