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

netfilter: tproxy: fix build with IP6_NF_IPTABLES=n

after commit 93742cf (netfilter: tproxy: remove nf_tproxy_core.h)

CONFIG_IPV6=y
CONFIG_IP6_NF_IPTABLES=n

gives us:

net/netfilter/xt_TPROXY.c: In function 'nf_tproxy_get_sock_v6':
net/netfilter/xt_TPROXY.c:178:4: error: implicit declaration of function 'inet6_lookup_listener'

Reported-by: kbuild test robot <fengguang.wu@intel.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
d8b3bfc2 12e7ada3

+1 -1
+1 -1
net/netfilter/xt_TPROXY.c
··· 161 161 return sk; 162 162 } 163 163 164 - #if IS_ENABLED(CONFIG_IPV6) 164 + #ifdef XT_TPROXY_HAVE_IPV6 165 165 static inline struct sock * 166 166 nf_tproxy_get_sock_v6(struct net *net, const u8 protocol, 167 167 const struct in6_addr *saddr, const struct in6_addr *daddr,