diff options
-rw-r--r-- | net/ipv4/Makefile | 3 | ||||
-rw-r--r-- | net/ipv4/af_inet.c | 4 | ||||
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 13 |
3 files changed, 6 insertions, 14 deletions
diff --git a/net/ipv4/Makefile b/net/ipv4/Makefile index 93fe3966805d..ad40ef3f9ebc 100644 --- a/net/ipv4/Makefile +++ b/net/ipv4/Makefile | |||
@@ -10,9 +10,10 @@ obj-y := route.o inetpeer.o protocol.o \ | |||
10 | tcp_minisocks.o tcp_cong.o \ | 10 | tcp_minisocks.o tcp_cong.o \ |
11 | datagram.o raw.o udp.o udplite.o \ | 11 | datagram.o raw.o udp.o udplite.o \ |
12 | arp.o icmp.o devinet.o af_inet.o igmp.o \ | 12 | arp.o icmp.o devinet.o af_inet.o igmp.o \ |
13 | sysctl_net_ipv4.o fib_frontend.o fib_semantics.o \ | 13 | fib_frontend.o fib_semantics.o \ |
14 | inet_fragment.o | 14 | inet_fragment.o |
15 | 15 | ||
16 | obj-$(CONFIG_SYSCTL) += sysctl_net_ipv4.o | ||
16 | obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o | 17 | obj-$(CONFIG_IP_FIB_HASH) += fib_hash.o |
17 | obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o | 18 | obj-$(CONFIG_IP_FIB_TRIE) += fib_trie.o |
18 | obj-$(CONFIG_PROC_FS) += proc.o | 19 | obj-$(CONFIG_PROC_FS) += proc.o |
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index c75f20b49935..0e4b6eba2340 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -126,6 +126,10 @@ extern void ip_mc_drop_socket(struct sock *sk); | |||
126 | static struct list_head inetsw[SOCK_MAX]; | 126 | static struct list_head inetsw[SOCK_MAX]; |
127 | static DEFINE_SPINLOCK(inetsw_lock); | 127 | static DEFINE_SPINLOCK(inetsw_lock); |
128 | 128 | ||
129 | struct ipv4_config ipv4_config; | ||
130 | |||
131 | EXPORT_SYMBOL(ipv4_config); | ||
132 | |||
129 | /* New destruction routine */ | 133 | /* New destruction routine */ |
130 | 134 | ||
131 | void inet_sock_destruct(struct sock *sk) | 135 | void inet_sock_destruct(struct sock *sk) |
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); | ||