Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: avoid build error if TPROXY/SOCKET=y && NF_DEFRAG_IPV6=m

With TPROXY=y but DEFRAG_IPV6=m we get build failure:

net/built-in.o: In function `tproxy_tg_init':
net/netfilter/xt_TPROXY.c:588: undefined reference to `nf_defrag_ipv6_enable'

If DEFRAG_IPV6 is modular, TPROXY must be too.
(or both must be builtin).

This enforces =m for both.

Reported-and-tested-by: Liu Hua <liusdu@126.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Florian Westphal and committed by
Pablo Neira Ayuso
595ca588 f30bf2a5

+2
+2
net/netfilter/Kconfig
··· 863 863 depends on NETFILTER_XTABLES 864 864 depends on NETFILTER_ADVANCED 865 865 depends on (IPV6 || IPV6=n) 866 + depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n) 866 867 depends on IP_NF_MANGLE 867 868 select NF_DEFRAG_IPV4 868 869 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES ··· 1357 1356 depends on NETFILTER_ADVANCED 1358 1357 depends on !NF_CONNTRACK || NF_CONNTRACK 1359 1358 depends on (IPV6 || IPV6=n) 1359 + depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n) 1360 1360 select NF_DEFRAG_IPV4 1361 1361 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES 1362 1362 help