aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-09-28 10:37:17 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2018-09-28 10:40:40 +0200
commite2497f70bb8ebbeb1dc6ea2b68d5618ef63fe8dc (patch)
treee6689ce78d8aeca8aaa29768628c0ca419081f6c
parent86ed06c048f8bf64fdf4cfc8519892bdb8d232e3 (diff)
mncc: fix byte ordering of IP-Address in mncc
At the moment osmo-msc populates the member ip in struct gsm_mncc_rtp with the wrong byte ordering. This causes LCR or osmo-sip-connector to receive the IP address in the wrong order, which eventually leads into a reversed IP address in the SDP part of the SIP messages. Change-Id: I86148179b549b511528e4c65213eb6c204cc609e Related: OS#3431
-rw-r--r--src/libmsc/gsm_04_08_cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/gsm_04_08_cc.c b/src/libmsc/gsm_04_08_cc.c
index 2c17e22f5..19e6cbae8 100644
--- a/src/libmsc/gsm_04_08_cc.c
+++ b/src/libmsc/gsm_04_08_cc.c
@@ -1606,7 +1606,7 @@ static void mncc_recv_rtp(struct gsm_network *net, uint32_t callref,
rtp->callref = callref;
rtp->msg_type = cmd;
- rtp->ip = addr;
+ rtp->ip = osmo_htonl(addr);
rtp->port = port;
rtp->payload_type = payload_type;
rtp->payload_msg_type = payload_msg_type;