]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92e0dccd365bdf29d6018b8fc4624a29f6de496a
treecb4486c3522885f9b6bb61f10960e3b7b27a5b4f
parent9992e170eb9ea5e0bd3722925176c4190c0e14dc
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