Skip to contentSkip to conversation

netfilter: tproxy: fix build with IP6_NF_IPTABLES=n

PATCH Applied Florian Westphal 2 participants 2 messages Aug 4, 2013 – Aug 5, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 51fd4909.9l/Oq5RafYHkZm62%[email protected]

Florian Westphal

author maintainer
#1 lore raw

PATCH 1/1 netfilter: tproxy: fix build with IP6_NF_IPTABLES=n

after commit 93742cf8af9dd3b053242b273040aa35fcbf93b3 (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'

---

net/netfilter/xt_TPROXY.c +1 -1
index 851383a..5d8a3a3 100644
@@ -161,7 +161,7 @@ nf_tproxy_get_sock_v4(struct net *net, const u8 protocol,
 	return sk;
 }
 
-#if IS_ENABLED(CONFIG_IPV6)
+#ifdef XT_TPROXY_HAVE_IPV6
 static inline struct sock *
 nf_tproxy_get_sock_v6(struct net *net, const u8 protocol,
 		      const struct in6_addr *saddr, const struct in6_addr *daddr,
Signature · 1 line
1.8.1.5
maintainer Applied
#2 lore raw
Quoted 8 lines · Florian Westphal

after commit 93742cf8af9dd3b053242b273040aa35fcbf93b3 (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'

Applied, thanks Florian.