[PATCH 5/9] tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOVACS Krisztian
Date: Wednesday, October 20, 2010 - 4:21 am

From: Balazs Scheidler <bazsi@balabit.hu>

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
---
 net/ipv6/af_inet6.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 6022098..9480572 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -343,7 +343,7 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
 			 */
 			v4addr = LOOPBACK4_IPV6;
 			if (!(addr_type & IPV6_ADDR_MULTICAST))	{
-				if (!ipv6_chk_addr(net, &addr->sin6_addr,
+				if (!inet->transparent && !ipv6_chk_addr(net, &addr->sin6_addr,
 						   dev, 0)) {
 					err = -EADDRNOTAVAIL;
 					goto out_unlock;


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/9] tproxy: added tproxy sockopt interface in the ..., KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 5/9] tproxy: allow non-local binds of IPv6 sockets ..., KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 8/9] tproxy: added IPv6 support to the socket match, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 7/9] tproxy: added IPv6 support to the TPROXY target, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 3/9] tproxy: added udp6_lib_lookup function, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
[PATCH 0/9] tproxy: add IPv6 support, KOVACS Krisztian, (Wed Oct 20, 4:21 am)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Wed Oct 20, 5:45 am)
Re: [PATCH 4/9] tproxy: added tproxy sockopt interface in ..., KOVACS Krisztian, (Thu Oct 21, 1:46 am)
Re: [PATCH 6/9] tproxy: added IPv6 socket lookup function ..., KOVACS Krisztian, (Thu Oct 21, 2:48 am)
Re: [PATCH 4/9] tproxy: added tproxy sockopt interface in ..., YOSHIFUJI Hideaki, (Thu Oct 21, 2:09 pm)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Thu Oct 21, 2:24 pm)
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sock ..., YOSHIFUJI Hideaki, (Sat Oct 23, 10:03 pm)