From 7b4d3039dfd2cbfa15127c29dcb557f314d13db1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Feb 2002 19:12:19 -0800 Subject: v2.4.6.8 -> v2.4.6.9 - Dan Quinlan: cramfs update - Ben Collins: IEEE 1394 update - David Miller: network update (pppoe, routing cache stats), sparc32 update - me: only dump core once per threaded app (first one wins) - me: use new completion handlers for block device requests (same race as with vfork, see -pre7) --- include/net/route.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/net') diff --git a/include/net/route.h b/include/net/route.h index f6ce0400874d..2f942d7b782b 100644 --- a/include/net/route.h +++ b/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 @@ -92,6 +93,20 @@ struct ip_rt_acct __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; struct in_device; -- cgit v1.2.3