netstat - Fix netstat -m on core dumps
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Sep 2010 17:15:34 +0000 (10:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Sep 2010 17:15:34 +0000 (10:15 -0700)
commit7a52e261d58c007ae4615e067eac8d99a902cd19
treeb835faf0360cc42e553b0e1f17f3d9465a5dab06
parentef273fc73cde4fa83ffc09af8e1bfa3fbe50ad30
netstat - Fix netstat -m on core dumps

* Aggregate all ncpus worth of stats when operating on a core dump instead
  of just using cpu0.  Otherwise the numbers will be wildly incorrect.

Reported-by: Peter Avalos <peter@theshell.com>
usr.bin/netstat/main.c
usr.bin/netstat/mbuf.c
usr.bin/netstat/netstat.h