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>
Showing
- include/net/ip.h 0 additions, 2 deletionsinclude/net/ip.h
- include/net/netns/ipv4.h 1 addition, 0 deletionsinclude/net/netns/ipv4.h
- net/ipv4/af_inet.c 1 addition, 5 deletionsnet/ipv4/af_inet.c
- net/ipv4/ping.c 1 addition, 1 deletionnet/ipv4/ping.c
- net/ipv4/sysctl_net_ipv4.c 7 additions, 7 deletionsnet/ipv4/sysctl_net_ipv4.c
- net/ipv6/af_inet6.c 1 addition, 1 deletionnet/ipv6/af_inet6.c
- net/sctp/protocol.c 1 addition, 1 deletionnet/sctp/protocol.c
Loading
Please register or sign in to comment