summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-10-04 17:53:21 +0200
committerAlexander Couzens <lynxis@fe80.eu>2016-10-04 17:53:21 +0200
commit33163979212119c6c52d5c4c731a03707710be73 (patch)
treebaaf825e28128305659933f01dc5f240c0274b38
parent92f552f344541977d952596bd3d2eaaef4435809 (diff)
gprs/gprs_llc: count UI frames over SAPI in the statistics
-rw-r--r--openbsc/src/gprs/gprs_llc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index 5b1f33329..e5a80e56b 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -774,6 +774,9 @@ int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command,
}
}
+ rate_ctr_inc(&sgsn->rate_ctrs->ctr[CTR_LLC_DL_PACKETS]);
+ rate_ctr_add(&sgsn->rate_ctrs->ctr[CTR_LLC_DL_BYTES], msg->len);
+
/* Identifiers passed down: (BVCI, NSEI) */
/* Send BSSGP-DL-UNITDATA.req */