aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_ppp.c
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-06-01 01:29:49 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-06-01 01:29:49 +0000
commitb4c44c30d8c87eac7b7505e580adeae27698893f (patch)
treef6e4e01dfa7658f8c1e7da379364fec5f4d91fcf /sys/netgraph/ng_ppp.c
parente05327ee1b4ff70d5d431f4942e01b7f8e42699b (diff)
downloadsrc-b4c44c30d8c87eac7b7505e580adeae27698893f.tar.gz
src-b4c44c30d8c87eac7b7505e580adeae27698893f.zip
Fix bug where receive statistics for the bundle were not getting updated.
Notes
Notes: svn path=/head/; revision=61143
Diffstat (limited to 'sys/netgraph/ng_ppp.c')
-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 ba1dacf796ab..fbd29ec960c3 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;