]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc9d8f1a64225dfcc2f721d73a5984a2444920744
tree504650428b82655ca53cc521b854a9b895fc744a
parent23a456f05353035d1a2b3f1b9a92707acdc036e0
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