All of lore.kernel.org
 help / color / mirror / Atom feed
* nonlocal_bind and IPv6
@ 2011-12-14 16:20 Vincent Bernat
  2011-12-14 16:20 ` [PATCH 1/2] net/ipv6: add ip_nonlocal_bind sysctl for IPv6 Vincent Bernat
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Vincent Bernat @ 2011-12-14 16:20 UTC (permalink / raw)
  To: netdev; +Cc: davem, yoshfuji

This is a second tentative to port ip_nonlocal_bind to IPv6. The two
patches are independant. The first patch enables
net.ipv6.ip_nonlocal_bind and is "namespace aware". The second patch
modifies net.ipv4.ip_nonlocal_bind to also be "namespace aware". I
don't know if this is something important.

I did not test the SCTP part of the second patch (but it compiles).

 Documentation/networking/ip-sysctl.txt |    5 +++++
 include/net/netns/ipv4.h               |    1 +
 include/net/netns/ipv6.h               |    1 +
 net/ipv4/af_inet.c                     |    6 +-----
 net/ipv4/ping.c                        |    2 +-
 net/ipv4/sysctl_net_ipv4.c             |   16 +++++++++-------
 net/ipv6/af_inet6.c                    |    6 ++++--
 net/ipv6/sysctl_net_ipv6.c             |    8 ++++++++
 net/sctp/protocol.c                    |    2 +-
 9 files changed, 31 insertions(+), 16 deletions(-)

^ permalink raw reply	[flat|nested] 14+ messages in thread
* nonlocal_bind and IPv6
@ 2011-12-12 13:18 Vincent Bernat
  0 siblings, 0 replies; 14+ messages in thread
From: Vincent Bernat @ 2011-12-12 13:18 UTC (permalink / raw)
  To: netdev; +Cc: davem

Hi!

It is possible with IPv4 to set net.ipv4.ip_nonlocal_bind to 1 and to
bind to non local addresses. This patch adds the same possibility for
IPv6. Since the IPv4 version is not constrained to a network
namespace, I have followed the same approach for the IPv6
version.

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

end of thread, other threads:[~2011-12-17 10:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 16:20 nonlocal_bind and IPv6 Vincent Bernat
2011-12-14 16:20 ` [PATCH 1/2] net/ipv6: add ip_nonlocal_bind sysctl for IPv6 Vincent Bernat
2011-12-14 16:20 ` [PATCH 2/2] net/ipv4: bind ip_nonlocal_bind to current netns Vincent Bernat
2011-12-16  3:58 ` nonlocal_bind and IPv6 Maciej Żenczykowski
2011-12-16  6:24   ` Vincent Bernat
2011-12-16  7:06     ` David Miller
2011-12-16  9:53       ` Vincent Bernat
2011-12-16 11:10         ` Francois Romieu
2011-12-16 18:20           ` David Miller
2011-12-16 18:18         ` David Miller
2011-12-17 10:52           ` Vincent Bernat
2011-12-16  6:46 ` YOSHIFUJI Hideaki
2011-12-16  9:46   ` Vincent Bernat
  -- strict thread matches above, loose matches on Subject: below --
2011-12-12 13:18 Vincent Bernat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.