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>
Showing
- include/net/netns/ipv4.h 1 addition, 1 deletioninclude/net/netns/ipv4.h
- net/ipv4/af_inet.c 28 additions, 0 deletionsnet/ipv4/af_inet.c
- net/ipv4/inet_connection_sock.c 4 additions, 4 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/ping.c 2 additions, 2 deletionsnet/ipv4/ping.c
- net/ipv4/sysctl_net_ipv4.c 11 additions, 18 deletionsnet/ipv4/sysctl_net_ipv4.c
Please register or sign in to comment