net/ipv4/route.c doesn't compile without /proc support

net/ipv4/route.c doesn't compile without /proc support

Post by Paul Rollan » Mon, 13 Jan 2003 13:30:05



Hello,

Here is a quick patch to allow correct compile of net/ipv4/route.c
when not using /proc support.

Without it, some attempts to create entries in /proc are resulting
in invoking functions that are protected by #ifdef CONFIG_PROC_FS...

Regards,

--- linux-2.5.56/net/ipv4/route.c       2003-01-10 21:12:25.000000000
+0100
+++ linux-2.5.56-work/net/ipv4/route.c  2003-01-12 12:11:30.000000000

                                        ip_rt_gc_interval;
        add_timer(&rt_periodic_timer);

+#ifdef CONFIG_PROC_FS
        if (rt_cache_proc_init())
                goto out_enomem;
        proc_net_create ("rt_cache_stat", 0, rt_cache_stat_get_info);
 #ifdef CONFIG_NET_CLS_ROUTE
        create_proc_read_entry("net/rt_acct", 0, 0, ip_rt_acct_read,
NULL);
 #endif
+#endif
        xfrm_init();
 out:
        return rc;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

net/ipv4/route.c doesn't compile without /proc support

Post by David S. Mille » Tue, 14 Jan 2003 10:30:07


APplied, thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. ipv4: move proc stuff from net/ipv4/af_inet.c to net/ipv4/proc.c


   Date: Tue, 29 Oct 2002 11:42:07 -0200 (BRDT)

        Please consider pulling from:

   kernel.bkbits.net:/home/acme/net-2.5

Pulled, thanks.

I just did a push to Linus, so this will go show up in the next round.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Is Linux real-time ?

3. make net/ipv4/route.c compile without CONFIG_PROC_FS

4. Urgent Help Needed! startx report Cannot open /dev/console

5. move /proc/net/udp support back to net/ipv4/udp.c

6. one of the reasons to not support microsoft

7. [ipv4] move proc init to newly created net/ipv4/ip_proc.c

8. SLS Compile Signal 11 Error

9. ipv4 /proc/net/route bug in 2.4 and 2.5 kernels

10. ipv4/route: convert /proc/net/rt_cache to seq_file

11. ipv4: move /proc/net/arp seq_file support back to arp.c

12. /proc/net/route, /proc/net/rt_cach, sysctl ??

13. What's the equivalent of /proc/sys/net/ipv4/ip_always_defrag in v2.3?