summaryrefslogtreecommitdiff
path: root/scripts/ver_linux
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2004-09-28 00:22:31 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-09-28 00:22:31 -0700
commit6ad5331ee3c59d40eb8a52078823a0921c83dfa8 (patch)
treeb8fafad5c9dee5c114cc37955f0e89090039bc03 /scripts/ver_linux
parent4d22a9cc183447dd692e370c8981dd25bea32eb6 (diff)
[NET]: Generic network statistics
This patch moves the following files in /proc: /proc/net/rt_cache_stat /proc/net/stat/rt_cache /proc/net/ip_conntrack_stat /proc/net/stat/ip_conntrack /proc/net/arp_cache_stat /proc/net/stat/arp_cache /proc/net/clip_arp_cache_stat /proc/net/stat/clip_arp_cache /proc/net/dn_neigh_cache_stat /proc/net/stat/dn_neigh_cache This allows a generic statistics tool to scan for all available statistics by doing readdir(2) on /proc/net/stat It also adds a special first 'template' line to rt_cache and ip_conntrack in order to facilitate compatibility once somebody adds new fields to the output lines. WARNING: This breaks existing rtstat.c and ctstat.c userspace programs (hopefully for the last time). rtstat is non-existant or broken in major distributions anyway, and ctstat is too new for any distros having it picked up. Therefore, we justify this breakage. A new unified statistics tool for routing cache, connection tracking and neighbour cache is under development and will be included with iproute2. Signed-off-by: Harald Welte <laforge@gnumonks.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/ver_linux')
0 files changed, 0 insertions, 0 deletions