From e2497f70bb8ebbeb1dc6ea2b68d5618ef63fe8dc Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 28 Sep 2018 10:37:17 +0200 Subject: 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 --- src/libmsc/gsm_04_08_cc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3