netfilter: tproxy: fix build with IP6_NF_IPTABLES=n
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 51fd4909.9l/Oq5RafYHkZm62%[email protected]
Florian Westphal
maintainerPATCH 1/1 netfilter: tproxy: fix build with IP6_NF_IPTABLES=n
after commit 93742cf8af9dd3b053242b273040aa35fcbf93b3 (netfilter: tproxy: remove nf_tproxy_core.h) CONFIG_IPV6=yCONFIG_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
@@ -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
Quoted 8 lines · Florian Westphal
after commit
93742cf8af9dd3b053242b273040aa35fcbf93b3(netfilter: tproxy: removenf_tproxy_core.h)CONFIG_IPV6=yCONFIG_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.