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
This commit is contained in:
Philipp Maier 2018-09-28 10:37:17 +02:00
parent 86ed06c048
commit e2497f70bb
1 changed files with 1 additions and 1 deletions

View File

@ -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;