git: kernel - fix statistics counters for if_bridge.
dillon at crater.dragonflybsd.org
Wed Jun 12 12:26:00 PDT 2013
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(-)
DragonFly BSD source repository
More information about the Commits