]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/route.c
Linux 2.6.27-rc2
[net-next-2.6.git] / net / ipv4 / route.c
index a507c5e27d0e7d057d0870f9d718903c2d083e4e..1bfa078ddbd0c357d97c269179b713c09b0a0ad3 100644 (file)
@@ -2914,7 +2914,7 @@ static int ipv4_sysctl_rtcache_flush_strategy(ctl_table *table,
        return 0;
 }
 
-ctl_table ipv4_route_table[] = {
+static ctl_table ipv4_route_table[] = {
        {
                .ctl_name       = NET_IPV4_ROUTE_GC_THRESH,
                .procname       = "gc_thresh",
@@ -3216,6 +3216,19 @@ int __init ip_rt_init(void)
        return rc;
 }
 
+#ifdef CONFIG_SYSCTL
+/*
+ * We really need to sanitize the damn ipv4 init order, then all
+ * this nonsense will go away.
+ */
+void __init ip_static_sysctl_init(void)
+{
+#ifdef CONFIG_SYSCTL
+       register_sysctl_paths(ipv4_route_path, ipv4_route_table);
+#endif
+}
+#endif
+
 EXPORT_SYMBOL(__ip_select_ident);
 EXPORT_SYMBOL(ip_route_input);
 EXPORT_SYMBOL(ip_route_output_key);