]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: move local_port_range out of CONFIG_SYSCTL
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 6 May 2014 18:02:49 +0000 (11:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 02:50:47 +0000 (22:50 -0400)
commit34bb7dc3fd49af4e51cc3aecc1b4e8e1bc2adf30
tree504650428b82655ca53cc521b854a9b895fc744a
parent52cd83b6c66b5e1042c33768bad066dd1e4d8e4e
ipv4: move local_port_range out of CONFIG_SYSCTL

When CONFIG_SYSCTL is not set, ip_local_port_range should still work,
just that no one can change it. Therefore we should move it out of sysctl_inet.c.
Also, rename it to ->ip_local_ports instead.

Cc: David S. Miller <davem@davemloft.net>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Reported-by: Stefan de Konink <stefan@konink.de>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
net/ipv4/ping.c
net/ipv4/sysctl_net_ipv4.c