From: michele.dionisio@gmail.com
To: netdev@vger.kernel.org, yoshfuji@linux-ipv6.org
Cc: Michele Dionisio <michele.dionisio@gmail.com>
Subject: [PATCH] ipv6: honour non local bind
Date: Thu, 9 Oct 2014 17:04:22 +0200 [thread overview]
Message-ID: <1412867063-28433-1-git-send-email-michele.dionisio@gmail.com> (raw)
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
next reply other threads:[~2014-10-09 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 15:04 michele.dionisio [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412867063-28433-1-git-send-email-michele.dionisio@gmail.com \
--to=michele.dionisio@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).