* [PATCH nftables] nftables: fix compilation when nf-netlink is a module
@ 2013-03-06 10:26 Nicolas Dichtel
2013-03-06 11:20 ` Nicolas Dichtel
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2013-03-06 10:26 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, Nicolas Dichtel
nftables uses nfnl_[un]lock() and thus depends on CONFIG_NETFILTER_NETLINK.
It's not possible to have nftables built-in when CONFIG_NETFILTER_NETLINK is set
to m.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
net/netfilter/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 7d1c3c0..acf6705 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -430,6 +430,7 @@ config NETFILTER_XTABLES
ip6_tables or arp_tables.
config NF_TABLES
+ depends on NETFILTER_NETLINK
tristate "Netfilter nf_tables support"
config NFT_PAYLOAD
--
1.8.0.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH nftables] nftables: fix compilation when nf-netlink is a module
2013-03-06 10:26 [PATCH nftables] nftables: fix compilation when nf-netlink is a module Nicolas Dichtel
@ 2013-03-06 11:20 ` Nicolas Dichtel
2013-03-06 13:42 ` [PATCH nftables v2] " Nicolas Dichtel
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2013-03-06 11:20 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
Le 06/03/2013 11:26, Nicolas Dichtel a écrit :
> nftables uses nfnl_[un]lock() and thus depends on CONFIG_NETFILTER_NETLINK.
> It's not possible to have nftables built-in when CONFIG_NETFILTER_NETLINK is set
> to m.
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> ---
Please, forget this patch. It introduces a circular dependancy.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH nftables v2] nftables: fix compilation when nf-netlink is a module
2013-03-06 11:20 ` Nicolas Dichtel
@ 2013-03-06 13:42 ` Nicolas Dichtel
2013-03-14 15:43 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dichtel @ 2013-03-06 13:42 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, Nicolas Dichtel
nftables uses nfnl_[un]lock() and thus depends on CONFIG_NETFILTER_NETLINK.
It's not possible to have nftables built-in when CONFIG_NETFILTER_NETLINK is set
to m.
I also add a dependancy between NETFILTER_XTABLES and NFT_COMPAT instead of
automatically set NETFILTER_XTABLES when NFT_COMPAT is set. This is to avoid a
circular dependency:
net/netfilter/Kconfig:432:error: recursive dependency detected!
net/netfilter/Kconfig:432: symbol NF_TABLES depends on NETFILTER_NETLINK
net/netfilter/Kconfig:4: symbol NETFILTER_NETLINK is selected by NETFILTER_NETLINK_ACCT
net/netfilter/Kconfig:7: symbol NETFILTER_NETLINK_ACCT is selected by NETFILTER_XT_MATCH_NFACCT
net/netfilter/Kconfig:1087: symbol NETFILTER_XT_MATCH_NFACCT depends on NETFILTER_XTABLES
net/netfilter/Kconfig:425: symbol NETFILTER_XTABLES is selected by NFT_COMPAT
net/netfilter/Kconfig:478: symbol NFT_COMPAT depends on NF_TABLES
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
v2: fix circular dependency
net/netfilter/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 7d1c3c0..903275e 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -430,6 +430,7 @@ config NETFILTER_XTABLES
ip6_tables or arp_tables.
config NF_TABLES
+ depends on NETFILTER_NETLINK
tristate "Netfilter nf_tables support"
config NFT_PAYLOAD
@@ -476,7 +477,7 @@ config NFT_NAT
config NFT_COMPAT
depends on NF_TABLES
- select NETFILTER_XTABLES
+ depends on NETFILTER_XTABLES
tristate "Netfilter x_tables over nf_tables module"
help
This is required if you intend to use any of existing
--
1.8.0.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH nftables v2] nftables: fix compilation when nf-netlink is a module
2013-03-06 13:42 ` [PATCH nftables v2] " Nicolas Dichtel
@ 2013-03-14 15:43 ` Pablo Neira Ayuso
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2013-03-14 15:43 UTC (permalink / raw)
To: Nicolas Dichtel; +Cc: netfilter-devel
On Wed, Mar 06, 2013 at 02:42:07PM +0100, Nicolas Dichtel wrote:
> nftables uses nfnl_[un]lock() and thus depends on
> CONFIG_NETFILTER_NETLINK. It's not possible to have nftables
> built-in when CONFIG_NETFILTER_NETLINK is set to m.
>
> I also add a dependancy between NETFILTER_XTABLES and NFT_COMPAT
> instead of automatically set NETFILTER_XTABLES when NFT_COMPAT is
> set. This is to avoid a circular dependency:
>
> net/netfilter/Kconfig:432:error: recursive dependency detected!
> net/netfilter/Kconfig:432: symbol NF_TABLES depends on NETFILTER_NETLINK
> net/netfilter/Kconfig:4: symbol NETFILTER_NETLINK is selected by NETFILTER_NETLINK_ACCT
> net/netfilter/Kconfig:7: symbol NETFILTER_NETLINK_ACCT is selected by NETFILTER_XT_MATCH_NFACCT
> net/netfilter/Kconfig:1087: symbol NETFILTER_XT_MATCH_NFACCT depends on NETFILTER_XTABLES
> net/netfilter/Kconfig:425: symbol NETFILTER_XTABLES is selected by NFT_COMPAT
> net/netfilter/Kconfig:478: symbol NFT_COMPAT depends on NF_TABLES
Applied, thanks Nicolas.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-14 15:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06 10:26 [PATCH nftables] nftables: fix compilation when nf-netlink is a module Nicolas Dichtel
2013-03-06 11:20 ` Nicolas Dichtel
2013-03-06 13:42 ` [PATCH nftables v2] " Nicolas Dichtel
2013-03-14 15:43 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).