ranap_msg_factory: Use network byte order for 16 bit mode_versions field
Instead of 0x0001 the field was 0x0100
This commit is contained in:
parent
eac3bf97e8
commit
49f99cd265
|
@ -616,7 +616,7 @@ static RANAP_UserPlaneInformation_t *new_upi(long mode, uint8_t mode_versions)
|
|||
RANAP_UserPlaneInformation_t *upi = CALLOC(1, sizeof(*upi));
|
||||
uint16_t *buf = CALLOC(1, sizeof(*buf));
|
||||
|
||||
*buf = mode_versions;
|
||||
*buf = ntohs(mode_versions);
|
||||
|
||||
upi->userPlaneMode = mode;
|
||||
upi->uP_ModeVersions.buf = (uint8_t *) buf;
|
||||
|
|
Loading…
Reference in New Issue