aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-01-31 12:13:39 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2018-02-02 07:21:48 -0500
commit6be3bcd75afb673a37a82e18ba46d50430f172c1 (patch)
treedbc852a872e128fec342ca256d14eed45b2d113b /net/ipv4
parentea23d5e3bf340e413b8e05c13da233c99c64142b (diff)
netfilter: flowtable infrastructure depends on NETFILTER_INGRESS
config NF_FLOW_TABLE depends on NETFILTER_INGRESS. If users forget to enable this toggle, flowtable registration fails with EOPNOTSUPP. Moreover, turn 'select NF_FLOW_TABLE' in every flowtable family flavour into dependency instead, otherwise this new dependency on NETFILTER_INGRESS causes a warning. This also allows us to remove the explicit dependency between family flowtables <-> NF_TABLES and NF_CONNTRACK, given they depend on the NF_FLOW_TABLE core that already expresses the general dependencies for this new infrastructure. Moreover, NF_FLOW_TABLE_INET depends on NF_FLOW_TABLE_IPV4 and NF_FLOWTABLE_IPV6, which already depends on NF_FLOW_TABLE. So we can get rid of direct dependency with NF_FLOW_TABLE. In general, let's avoid 'select', it just makes things more complicated. Reported-by: John Crispin <john@phrozen.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig
index 5f52236780b4..dfe6fa4ea554 100644
--- a/net/ipv4/netfilter/Kconfig
+++ b/net/ipv4/netfilter/Kconfig
@@ -80,8 +80,7 @@ endif # NF_TABLES
80 80
81config NF_FLOW_TABLE_IPV4 81config NF_FLOW_TABLE_IPV4
82 tristate "Netfilter flow table IPv4 module" 82 tristate "Netfilter flow table IPv4 module"
83 depends on NF_CONNTRACK && NF_TABLES 83 depends on NF_FLOW_TABLE
84 select NF_FLOW_TABLE
85 help 84 help
86 This option adds the flow table IPv4 support. 85 This option adds the flow table IPv4 support.
87 86