netfilter: select NFNETLINK when enabling NF_TABLES
authorEric Leblond <eric@regit.org>
Sun, 29 Dec 2013 10:01:29 +0000 (11:01 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 29 Dec 2013 11:08:29 +0000 (12:08 +0100)
commit5f291c2869a08a63dbdc9de3e13ac5f2d5ed8d47
treecf697d3640d53a6b7680d65948b778125f29d5aa
parent994737513ee705e9e1c1e80102a999369dca1b41
netfilter: select NFNETLINK when enabling NF_TABLES

In Kconfig, nf_tables depends on NFNETLINK so building nf_tables as
a module or inside kernel depends on the state of NFNETLINK inside
the kernel config. If someone wants to build nf_tables inside the
kernel, it is necessary to also build NFNETLINK inside the kernel.
But NFNETLINK can not be set in the menu so it is necessary to
toggle other nfnetlink subsystems such as logging and nfacct to see
the nf_tables switch.

This patch changes the dependency from 'depend' to 'select' inside
Kconfig to allow to set the build of nftables as modules or inside
kernel independently.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/Kconfig