summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-13 11:57:44 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-13 11:57:44 +0200
commit3953bdddb78f73e019aded81c77073c55254f466 (patch)
tree8edf2e347eee56fb06c51def9b8b2e98b654ac67
parenta3724cdb6e7addc6c02d67f02b9163d317331cd4 (diff)
[GPRS] NS: Fix wrong counter use and remove debug statement
-rw-r--r--openbsc/src/gprs/gprs_ns.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c
index e83aee8e..cdc745aa 100644
--- a/openbsc/src/gprs/gprs_ns.c
+++ b/openbsc/src/gprs/gprs_ns.c
@@ -610,8 +610,6 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
struct gprs_nsvc *nsvc;
int rc = 0;
- DEBUGP(DNS, "gprs_ns_rcvmsg(%d)\n", msgb_l2len(msg));
-
/* look up the NSVC based on source address */
nsvc = nsvc_by_rem_addr(nsi, saddr);
if (!nsvc) {
@@ -658,8 +656,8 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
msgb_nsei(msg) = nsvc->nsei;
/* Increment number of Incoming bytes */
- rate_ctr_inc(&nsvc->ctrg->ctr[2]);
- rate_ctr_add(&nsvc->ctrg->ctr[0], msgb_l2len(msg));
+ rate_ctr_inc(&nsvc->ctrg->ctr[0]);
+ rate_ctr_add(&nsvc->ctrg->ctr[2], msgb_l2len(msg));
switch (nsh->pdu_type) {
case NS_PDUT_ALIVE: