patch-2.1.120 linux/include/net/route.h

Next file: linux/include/net/snmp.h
Previous file: linux/include/net/rawv6.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.119/linux/include/net/route.h linux/include/net/route.h
@@ -27,6 +27,11 @@
 #include <net/dst.h>
 #include <linux/in_route.h>
 #include <linux/rtnetlink.h>
+#include <linux/route.h>
+
+#ifndef __KERNEL__
+#warning This file is not supposed to be used outside of kernel.
+#endif
 
 #define RT_HASH_DIVISOR	    	256
 
@@ -36,7 +41,6 @@
  */
 #define RT_CACHE_BUBBLE_THRESHOLD	(5*HZ)
 
-#include <linux/route.h>
 
 #define RTO_ONLINK	0x01
 #define RTO_TPROXY	0x80000000
@@ -87,7 +91,8 @@
 #endif
 };
 
-#ifdef __KERNEL__
+extern struct rtable 	*rt_hash_table[RT_HASH_DIVISOR];
+
 extern void		ip_rt_init(void);
 extern void		ip_rt_redirect(u32 old_gw, u32 dst, u32 new_gw,
 				       u32 src, u8 tos, struct device *dev);
@@ -130,8 +135,5 @@
 	*rp = NULL;
 	return ip_route_output(rp, dst, src, tos, oif);
 }
-
-#endif
-
 
 #endif	/* _ROUTE_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov