diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-12-05 04:38:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:27 -0500 |
commit | 9ba639797606acbcd97be886f41fbce163914e7b (patch) | |
tree | 49320d143d43a79f57f0ec9e994df338ee0a4db6 /net/ipv4/sysctl_net_ipv4.c | |
parent | 33eb9cfc700ae9ce621d47d6ca6d6b4ad7cd97f3 (diff) |
[IPV4]: Cleanup the sysctl_net_ipv4.c file
This includes several cleanups:
* tune Makefile to compile out this file when SYSCTL=n. Now
it looks like net/core/sysctl_net_core.c one;
* move the ipv4_config to af_inet.c to exist all the time;
* remove additional sysctl_ip_nonlocal_bind declaration
(it is already declared in net/ip.h);
* remove no nonger needed ifdefs from this file.
This is a preparation for using ctl paths for net/ipv4/
sysctl table.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index bec6fe880657..3546424765f5 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -21,19 +21,10 @@ | |||
21 | #include <net/cipso_ipv4.h> | 21 | #include <net/cipso_ipv4.h> |
22 | #include <net/inet_frag.h> | 22 | #include <net/inet_frag.h> |
23 | 23 | ||
24 | /* From af_inet.c */ | ||
25 | extern int sysctl_ip_nonlocal_bind; | ||
26 | |||
27 | #ifdef CONFIG_SYSCTL | ||
28 | static int zero; | 24 | static int zero; |
29 | static int tcp_retr1_max = 255; | 25 | static int tcp_retr1_max = 255; |
30 | static int ip_local_port_range_min[] = { 1, 1 }; | 26 | static int ip_local_port_range_min[] = { 1, 1 }; |
31 | static int ip_local_port_range_max[] = { 65535, 65535 }; | 27 | static int ip_local_port_range_max[] = { 65535, 65535 }; |
32 | #endif | ||
33 | |||
34 | struct ipv4_config ipv4_config; | ||
35 | |||
36 | #ifdef CONFIG_SYSCTL | ||
37 | 28 | ||
38 | static | 29 | static |
39 | int ipv4_sysctl_forward(ctl_table *ctl, int write, struct file * filp, | 30 | int ipv4_sysctl_forward(ctl_table *ctl, int write, struct file * filp, |
@@ -887,7 +878,3 @@ ctl_table ipv4_table[] = { | |||
887 | }, | 878 | }, |
888 | { .ctl_name = 0 } | 879 | { .ctl_name = 0 } |
889 | }; | 880 | }; |
890 | |||
891 | #endif /* CONFIG_SYSCTL */ | ||
892 | |||
893 | EXPORT_SYMBOL(ipv4_config); | ||