aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 03:01:55 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-07-29 03:04:57 +0800
commit417920a66098b67c45bb1774148a21de6b5ba07d (patch)
tree03ba0ad89a026b7fae4437a8f31f62ce8b778437 /openbsc/src/mgcp
parent1aa4246bb8c0cc75091eb299da11c6199f8dbebd (diff)
mgcp: Attempt to count lost packets better...
Diffstat (limited to 'openbsc/src/mgcp')
-rw-r--r--openbsc/src/mgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index 137aa938..cc1bf44f 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -109,7 +109,7 @@ static void patch_and_count(uint16_t *last_seq, int *lost, int payload, char *da
if (*last_seq == 0)
*last_seq = seq;
else if (*last_seq + 1 != seq)
- *lost += abs(*last_seq - seq);
+ *lost = abs(seq - (*last_seq + 1));
*last_seq = seq;