commit | f098c7abdad52b390c26da94a46c58d3dab1b833 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Sat Apr 23 14:51:03 2016 +0200 |
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Mon Apr 25 15:34:28 2016 +0200 |
tree | d2257e1c24a0b7e61c6f44148108c003ca777be2 | |
parent | edf1367e62fceddd09e31feef3898c83406e0fda [diff] [blame] |
ranap_msg_factory: fix RAB IP addr byte order for use_x213_nsap==false
diff --git a/src/ranap_msg_factory.c b/src/ranap_msg_factory.c index 0292442..1305bc2 100644 --- a/src/ranap_msg_factory.c +++ b/src/ranap_msg_factory.c
@@ -629,7 +629,7 @@ } else { len = 4; buf = CALLOC(len, sizeof(uint8_t)); - *(uint32_t *)buf = ip; + *(uint32_t *)buf = ntohl(ip); } out->buf = buf; out->size = len;