net/ipv4: bind ip_nonlocal_bind to current netns
authorVincent Bernat <vincent@bernat.im>
Fri, 5 Sep 2014 13:09:03 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 18:27:09 +0000 (11:27 -0700)
commit49a601589caaf0e93194c0cc9b4ecddbe75dd2d5
treecb4486c3522885f9b6bb61f10960e3b7b27a5b4f
parentafddacc3ccd048c49c7f4f0ad0b6a40730c74715
net/ipv4: bind ip_nonlocal_bind to current netns

net.ipv4.ip_nonlocal_bind sysctl was global to all network
namespaces. This patch allows to set a different value for each
network namespace.

Signed-off-by: Vincent Bernat <vincent@bernat.im>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/netns/ipv4.h
net/ipv4/af_inet.c
net/ipv4/ping.c
net/ipv4/sysctl_net_ipv4.c
net/ipv6/af_inet6.c
net/sctp/protocol.c