diff options
author | mav <mav@FreeBSD.org> | 2007-04-23 15:25:14 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2007-04-23 15:25:14 +0000 |
commit | 008892b71a55b329b41d1d06f71a1ffb7839e6da (patch) | |
tree | 695ce04b09f8ece6b5600f3bdc3d3c8cd19404a1 /sys/netgraph/ng_l2tp.c | |
parent | 55d666f72e58626994e4ddf4dc85e73a7b0b9888 (diff) | |
download | FreeBSD-src-008892b71a55b329b41d1d06f71a1ffb7839e6da.zip FreeBSD-src-008892b71a55b329b41d1d06f71a1ffb7839e6da.tar.gz |
Global xmit stats calculation fix.
Approved by: glebius (mentor)
Diffstat (limited to 'sys/netgraph/ng_l2tp.c')
-rw-r--r-- | sys/netgraph/ng_l2tp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index 40aec1d..78fc71a 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -1122,6 +1122,10 @@ ng_l2tp_recv_data(node_p node, item_p item, hookpriv_p hpriv) hpriv->stats.xmitPackets++; hpriv->stats.xmitOctets += m->m_pkthdr.len; + /* And the global one. */ + priv->stats.xmitPackets++; + priv->stats.xmitOctets += m->m_pkthdr.len; + /* Send packet */ NG_FWD_NEW_DATA(error, item, priv->lower, m); return (error); |