ipv4: make ip_local_reserved_ports per netns
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 12 May 2014 23:04:53 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:31:45 +0000 (15:31 -0400)
commit122ff243f5f104194750ecbc76d5946dd1eec934
tree189020a4d2404ef567785458fee38992e14ca97d
parent9cc5e36d1c4794939deafd9f43bce2eab9c1142d
ipv4: make ip_local_reserved_ports per netns

ip_local_port_range is already per netns, so should ip_local_reserved_ports
be. And since it is none by default we don't actually need it when we don't
enable CONFIG_SYSCTL.

By the way, rename inet_is_reserved_local_port() to inet_is_local_reserved_port()

Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/netns/ipv4.h
kernel/sysctl.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/udp.c
net/sctp/socket.c