git: systat - Add -pftop feature to display active PF state table traffic

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Aug 30 16:02:35 PDT 2013


commit e88010e7511a070d9ab1afc8a7e2e4b45ae5f2f9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 30 15:30:19 2013 -0700

    systat - Add -pftop feature to display active PF state table traffic
    
    * Add the -pftop (:pftop) feature.  This feature displays all active
      PF states.  PF (packet filter) must be active for this feature to be
      useful.
    
      Only those states which are actively passing traffic are displayed,
      which makes this a lot more useful than a raw 'pfctl -s state' dump.
    
    * Display is sorted by highest aggregate receive+transmit bandwidth.

Summary of changes:
 usr.bin/systat/Makefile |   2 +-
 usr.bin/systat/cmdtab.c |   3 +
 usr.bin/systat/extern.h |   7 +
 usr.bin/systat/pftop.c  | 490 ++++++++++++++++++++++++++++++++++++++++++++++++
 usr.bin/systat/systat.1 |  10 +-
 5 files changed, 510 insertions(+), 2 deletions(-)
 create mode 100644 usr.bin/systat/pftop.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e88010e7511a070d9ab1afc8a7e2e4b45ae5f2f9


-- 
DragonFly BSD source repository



More information about the Commits mailing list