Index: linux-2.6.9-rc2-bk9-neigh1/Documentation/networking/statistics.txt =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6.9-rc2-bk9-neigh1/Documentation/networking/statistics.txt 2004-10-02 18:15:23.485872616 +0200 @@ -0,0 +1,40 @@ +Statistics exported via /proc/net/stat - Added in 2.6.9 +====================================================================== +(C) 2004 by Harald Welte + +/proc/net/stat is a generalized replacement for /proc/net/rt_cache_stat. + +In addition to routing cache statistics, it supports any kind of statistics +the linux kernel exports via a file in /proc/net/stat. In a stock 2.6.9 +kernel, this is + per-protocol neighbour cache statistics + (ipv4, ipv6, atm, decnet) + routing cache statistics + (ipv4) + connection tracking statistics + (ipv4) + + +In order to get a convenient reading of those statistics, a tool called +'lnstat' is provided at http://svn.gnumonks.org/trunk/lnstat + +This tool is to be integrated in the next release of the iproute2 program. + + +If you want to add your own kernel statistics to /proc/net/stat, the file has +to have the following properties: + +0) Field seperator is always one or two spaces. No tabs, etc. + +1) First line consists out of a template of field names. This is usually the + structure member names of the statistics structure you want to dump + +2) All following lines consists of unsigned hexadecimal values. One line per + available CPU. Only as many fields as specified in template line. + +3) Please test if it works with the 'lnstat' tool before submitting a patch + to the kernel. + +Any questions should be directed to netdev@xxxxxxxxxxxxxxxxx or to the author +of this document. +