patch-2.4.7 linux/include/net/route.h
Next file: linux/include/scsi/sg.h
Previous file: linux/include/net/irda/qos.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Fri Jul 20 12:53:07 2001
- Orig file:
v2.4.6/linux/include/net/route.h
- Orig date:
Fri May 25 18:02:42 2001
diff -u --recursive --new-file v2.4.6/linux/include/net/route.h linux/include/net/route.h
@@ -14,6 +14,7 @@
* Alan Cox : Support for TCP parameters.
* Alexey Kuznetsov: Major changes for new routing code.
* Mike McLagan : Routing by source
+ * Robert Olsson : Added rt_cache statistics
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -90,6 +91,20 @@
__u32 o_packets;
__u32 i_bytes;
__u32 i_packets;
+};
+
+struct rt_cache_stat
+{
+ unsigned int in_hit;
+ unsigned int in_slow_tot;
+ unsigned int in_slow_mc;
+ unsigned int in_no_route;
+ unsigned int in_brd;
+ unsigned int in_martian_dst;
+ unsigned int in_martian_src;
+ unsigned int out_hit;
+ unsigned int out_slow_tot;
+ unsigned int out_slow_mc;
};
extern struct ip_rt_acct *ip_rt_acct;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)