netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv6: honour non local bind
@ 2014-10-09 15:04 michele.dionisio
  2014-10-09 15:04 ` [PATCH] ipv6: make ipv6 bind honour non local bind as IPV4 michele.dionisio
  2014-10-09 17:07 ` [PATCH] ipv6: honour non local bind Lukas Tribus
  0 siblings, 2 replies; 4+ messages in thread
From: michele.dionisio @ 2014-10-09 15:04 UTC (permalink / raw)
  To: netdev, yoshfuji; +Cc: Michele Dionisio

From: Michele Dionisio <michele.dionisio@gmail.com>


Hi all,

I see that net.ipv4.ip_nonlocal_bind = 1 does not works on ipv6 if you try to bind on not local ip.
An easy test to see the issue using python is:

set  net.ipv4.ip_nonlocal_bind = 1 and in python shell try to execute

import socket
s = socket.socket(family=socket.AF_INET6)
s.bind(('2a01:84a0:1001:A001:0000:0:0015:8', 1234))

you receive an error. In ipv4 it works.

The patch attached solve the issue

Michele Dionisio (1):
  ipv6: make ipv6 bind honour non local bind as IPV4

 net/ipv6/af_inet6.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.1.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-10  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 15:04 [PATCH] ipv6: honour non local bind michele.dionisio
2014-10-09 15:04 ` [PATCH] ipv6: make ipv6 bind honour non local bind as IPV4 michele.dionisio
2014-10-09 17:07 ` [PATCH] ipv6: honour non local bind Lukas Tribus
2014-10-10  7:23   ` Michele Dionisio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).