netfilter: fix Kconfig dependencies for nft_dup_ipv{4,6}
Subsystems (2)
PATCH 1/1 netfilter: fix Kconfig dependencies for nft_dup_ipv{4,6}
nft_dup_ipv4 and nft_dup_ipv6 select the respective nf_dup_ipv{4,6} drivers, which must not be built-in if nf_conntrack is a loadable module, otherwise we get a link error:
net/built-in.o: In function `nf_dup_ipv6':
(.text+0xdef20): undefined reference to `nf_conntrack_untracked'
The dependency was fixed for the nf_dup_* modules recently, but this patch adds the same dependency to the nft_dup_* modules for the (hopefully) complete fix.
---
found on ARM randconfig builds
net/ipv4/netfilter/Kconfig +1 -0
@@ -60,6 +60,7 @@ config NFT_REJECT_IPV4 config NFT_DUP_IPV4 tristate "IPv4 nf_tables packet duplication support" + depends on !NF_CONNTRACK || NF_CONNTRACK select NF_DUP_IPV4 help This module enables IPv4 packet duplication support for nf_tables.
net/ipv6/netfilter/Kconfig +1 -0
@@ -49,6 +49,7 @@ config NFT_REJECT_IPV6 config NFT_DUP_IPV6 tristate "IPv6 nf_tables packet duplication support" + depends on !NF_CONNTRACK || NF_CONNTRACK select NF_DUP_IPV6 help This module enables IPv6 packet duplication support for nf_tables.
Pablo Neira Ayuso
maintainerQuoted 10 lines · Arnd Bergmann
nft_dup_ipv4andnft_dup_ipv6select the respective nf_dup_ipv{4,6} drivers, which must not be built-in ifnf_conntrackis a loadable module, otherwise we get a link error:
net/built-in.o: In function `nf_dup_ipv6':
(.text+0xdef20): undefined reference to `nf_conntrack_untracked'The dependency was fixed for the nf_dup_* modules recently, but this patch adds the same dependency to the nft_dup_* modules for the (hopefully) complete fix.
Already have this patch for this enqueued here:
Will be submitting this to David asap. Thanks anyway.