summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-06-01 01:29:49 +0000
committerarchie <archie@FreeBSD.org>2000-06-01 01:29:49 +0000
commitb9592ca04094247089773ca7dd6d9b80a1327acf (patch)
tree7d5c3ce38de2ac1875b89674aef4305e0acf06e0 /sys
parent76b331914e87fd3d50a3a10fe8f24cf1cbc75a4b (diff)
downloadFreeBSD-src-b9592ca04094247089773ca7dd6d9b80a1327acf.zip
FreeBSD-src-b9592ca04094247089773ca7dd6d9b80a1327acf.tar.gz
Fix bug where receive statistics for the bundle were not getting updated.
Diffstat (limited to 'sys')
-rw-r--r--sys/netgraph/ng_ppp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c
index ba1dacf..fbd29ec 100644
--- a/sys/netgraph/ng_ppp.c
+++ b/sys/netgraph/ng_ppp.c
@@ -1016,6 +1016,10 @@ ng_ppp_mp_input(node_p node, int linkNum, struct mbuf *m, meta_p meta)
struct ng_ppp_frag *qent;
int i, diff, inserted;
+ /* Stats */
+ priv->bundleStats.recvFrames++;
+ priv->bundleStats.recvOctets += m->m_pkthdr.len;
+
/* Extract fragment information from MP header */
if (priv->conf.recvShortSeq) {
u_int16_t shdr;
OpenPOWER on IntegriCloud