aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-12-03 15:47:04 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2013-12-10 11:13:22 +0100
commit3da9e4e441ff7b6fb1996f775b39d7c3432ad652 (patch)
tree768cf88ed96eb77dc37814b7b4d3ca45e3a4a013 /openbsc/tests
parent30ce42250f56c930872228604edd7dd0836ec77a (diff)
mgcp/rtp: Use SSRC in proper byte ordering
The ssrc has been used without respect to proper byte ordering in mgcp_patch_and_count(). This only affected log messages. This patch introduces a new variable 'ssrc' that takes the value of the SSRC in proper byte order. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index 908773a69..e5b8bbdd5 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -586,7 +586,7 @@ static void test_packet_error_detection(int patch_ssrc, int patch_ts)
if (state.out_stream.ssrc != last_ssrc) {
printf("Output SSRC changed to %08x\n",
- ntohl(state.out_stream.ssrc));
+ state.out_stream.ssrc);
last_ssrc = state.out_stream.ssrc;
}