git: kernel - fix statistics counters for if_bridge.

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 12 12:26:00 PDT 2013


commit 7b9441903b35a1139f96bf49f65be192345f49e3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jun 12 12:10:41 2013 -0700

    kernel - fix statistics counters for if_bridge.
    
    * Count input statistics in bridge_input() instead of bridge_forward()
    
    * Add output statistics in bridge_forward().  That is, the bridge should
      in abstract look like a piece of hardware from a statistics standpoint,
      so when a packet is forwarded through a bridge interface it needs to
      show up as both an input packet and an output packet.
    
    * Fixes statistics reporting for e.g. 'netstat -in 1'.

Summary of changes:
 sys/net/bridge/if_bridge.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b9441903b35a1139f96bf49f65be192345f49e3


-- 
DragonFly BSD source repository


More information about the Commits mailing list