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

Similarly, when CONFIG_SYSCTL is not set, ping_group_range should still
work, just that no one can change it. Therefore we should move it out of
sysctl_net_ipv4.c. And, it should not share the same seqlock with
ip_local_port_range.

BTW, rename it to ->ping_group_range 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/ping.c
net/ipv4/sysctl_net_ipv4.c