Netdev List
 help / color / mirror / Atom feed
* [PATCH] netfilter: conntrack: add weak IPV6 dependency
@ 2018-07-06 12:59 Arnd Bergmann
  2018-07-06 13:55 ` Florian Westphal
  0 siblings, 1 reply; 8+ messages in thread
From: Arnd Bergmann @ 2018-07-06 12:59 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Jozsef Kadlecsik, Florian Westphal,
	David S. Miller
  Cc: Arnd Bergmann, Máté Eckl, Fernando Fernandez Mancera,
	Pablo M. Bermudo Garay, Felix Fietkau, netfilter-devel, coreteam,
	netdev, linux-kernel

Now that the conntrack module contains code for ipv6, we can no longer
have it built-in while IPv6 itself is a loadable module:

net/netfilter/nf_conntrack_proto.o: In function `nf_ct_netns_do_get':
nf_conntrack_proto.c:(.text+0x88c): undefined reference to `nf_defrag_ipv6_enable'
net/netfilter/nf_conntrack_proto.o:(.rodata+0x178): undefined reference to `nf_conntrack_l4proto_icmpv6'

This adds a dependency on IPv6 that makes it possible to still build
the conntrack module with IPv6 disabled, but avoids the broken configuration.

Fixes: 66c524acfb51 ("netfilter: conntrack: remove l3proto abstraction")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 net/netfilter/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 74df382bf2ba..e42c38c99741 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -49,6 +49,7 @@ config NETFILTER_NETLINK_LOG
 config NF_CONNTRACK
 	tristate "Netfilter connection tracking support"
 	default m if NETFILTER_ADVANCED=n
+	depends on IPV6 || !IPV6
 	select NF_DEFRAG_IPV4
 	select NF_DEFRAG_IPV6 if IPV6
 	help
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-07-09 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06 12:59 [PATCH] netfilter: conntrack: add weak IPV6 dependency Arnd Bergmann
2018-07-06 13:55 ` Florian Westphal
2018-07-06 14:50   ` Arnd Bergmann
2018-07-06 15:00     ` Florian Westphal
2018-07-06 15:14       ` Arnd Bergmann
2018-07-06 18:35       ` Florian Westphal
2018-07-09 16:50         ` Pablo Neira Ayuso
2018-07-09 20:27           ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox