diff options
author | Vincent Bernat <vincent@bernat.im> | 2014-09-05 09:09:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-09 14:27:09 -0400 |
commit | 49a601589caaf0e93194c0cc9b4ecddbe75dd2d5 (patch) | |
tree | cb4486c3522885f9b6bb61f10960e3b7b27a5b4f /net/sctp | |
parent | afddacc3ccd048c49c7f4f0ad0b6a40730c74715 (diff) |
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>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 6240834f4b95..9d2c6c9facb6 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -366,7 +366,7 @@ static int sctp_v4_available(union sctp_addr *addr, struct sctp_sock *sp) | |||
366 | if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && | 366 | if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && |
367 | ret != RTN_LOCAL && | 367 | ret != RTN_LOCAL && |
368 | !sp->inet.freebind && | 368 | !sp->inet.freebind && |
369 | !sysctl_ip_nonlocal_bind) | 369 | !net->ipv4.sysctl_ip_nonlocal_bind) |
370 | return 0; | 370 | return 0; |
371 | 371 | ||
372 | if (ipv6_only_sock(sctp_opt2sk(sp))) | 372 | if (ipv6_only_sock(sctp_opt2sk(sp))) |