systat - Add -altq display, bug fixes
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Sep 2014 17:53:28 +0000 (10:53 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Sep 2014 17:53:28 +0000 (10:53 -0700)
commitaa0a803a57c7119e5b39d166a1bc779fb1917014
tree51542d9153496811ec709807ab4dba2cd8b42e95
parent6b90a76c2cbb0c3b20e1befdfb3c08e12a731cbb
systat - Add -altq display, bug fixes

* Add systat -altq.  This displays altq packet statistics in a nice
  [ifname x altqname] matrix.  Packets, bytes, and drops are displayed.

  Previously the only way to do this was to use 'pfctl -s queue -vvv'
  which is formatted so horribly that picking information out of it
  at a glance is impossible.

  Example usage:  systat -altq 1

* Correct a bug in -ifstat that caused the statistics to not display
  when switching out and then back into the ifstat display.
usr.bin/systat/Makefile
usr.bin/systat/altqs.c [copied from usr.bin/systat/ifstat.c with 50% similarity]
usr.bin/systat/cmdtab.c
usr.bin/systat/extern.h
usr.bin/systat/ifstat.c