From: Pablo Neira Ayuso Date: Wed, 9 Dec 2015 21:06:59 +0000 (+0100) Subject: netfilter: nf_dup: add missing dependencies with NF_CONNTRACK X-Git-Tag: v4.1.12-102.0.20170529_2200~59 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7adf590f81a8dfdeb832859c12e2e89be6b6e329;p=users%2Fjedix%2Flinux-maple.git netfilter: nf_dup: add missing dependencies with NF_CONNTRACK CONFIG_NF_CONNTRACK=m CONFIG_NF_DUP_IPV4=y results in: net/built-in.o: In function `nf_dup_ipv4': >> (.text+0xd434f): undefined reference to `nf_conntrack_untracked' Reported-by: kbuild test robot Signed-off-by: Pablo Neira Ayuso (cherry picked from commit d3340b79ec8222d20453b1e7f261b017d1d09dc9) Orabug: 24694570 Signed-off-by: Ethan Zhao Reviewed-by: Dhaval Giani --- diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index 439df8dc291f..caa804f9fc2d 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig @@ -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. diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig index 0a1c8538d4a5..f68972545f30 100644 --- a/net/ipv6/netfilter/Kconfig +++ b/net/ipv6/netfilter/Kconfig @@ -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.