Networking routing statistics on a per-CPU basis:
authorHiten Pandya <hmp@dragonflybsd.org>
Sun, 1 May 2005 04:05:35 +0000 (04:05 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Sun, 1 May 2005 04:05:35 +0000 (04:05 +0000)
commit72ce0f6df89cadaf8188427b6eb83ba75a684970
tree5284af329b0b0be187900383a74e1bf37d411f4e
parentc6c6fa46848deb87f00db683b7296cd0588d9262
Networking routing statistics on a per-CPU basis:

(a) sysctl node net.route introduced.

(b) sysctl leaf node net.route.stats can be used for retrieving
    a cpu indexed array of struct rtstatistics.

(a) add a function kinfo_get_net_rtstatistics(3), which will be
    responsible for providing an aggregated view of the routing
    statistics; part of libkinfo(3).

(d) adapt netstat(8) to make use of the new libkinfo interface
for retrieving routing statistics.

Discussed-with: Jeffrey Hsu <hsu at dragonflybsd.org> (long time ago)
lib/libkinfo/Makefile
lib/libkinfo/kinfo.h
lib/libkinfo/kinfo_net.c [copied from lib/libkinfo/kinfo_pcpu.c with 62% similarity]
lib/libkinfo/kinfo_pcpu.c
sys/net/route.c
sys/net/route.h
usr.bin/netstat/Makefile
usr.bin/netstat/main.c
usr.bin/netstat/netstat.h
usr.bin/netstat/route.c