diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-09-12 11:30:41 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-11-12 10:42:05 +0100 |
commit | 2a60a11c48e8677fc6c75174a5a0d4db1da97d0a (patch) | |
tree | 0b8cc8b5b129351a8a0852dc6227b586241a0b36 /openbsc/src/libmgcp/mgcp_network.c | |
parent | de1674ab02d7c30f7f40f03d6942b7933d9d6d58 (diff) |
mgcp: Remove the lost_no from the mgcp statistics
The RFC 3435 specifies a different formula for calculating the lost
packages. It involves the number of received packages and the delta
of the sequence number.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_network.c')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_network.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c index 8824dc835..b15d6f711 100644 --- a/openbsc/src/libmgcp/mgcp_network.c +++ b/openbsc/src/libmgcp/mgcp_network.c @@ -145,11 +145,7 @@ static void patch_and_count(struct mgcp_endpoint *endp, struct mgcp_rtp_state *s rtp_hdr->timestamp = htonl(timestamp); } - /* seq changed, now compare if we have lost something */ - if (state->seq_no + 1u != seq) - state->lost_no = abs(seq - (state->seq_no + 1)); state->seq_no = seq; - state->last_timestamp = timestamp; if (payload < 0) |