diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-12-29 19:10:48 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-12-29 19:10:48 +0100 |
commit | 01de8d716a2fbf2b2a951edc20178c5abd24a080 (patch) | |
tree | 3ee50b5fa4db3e0ddf789bcfcd3489b1e73b60c1 | |
parent | 05ac6778401de0b7c4e49fb58c3adc3ded7d93f7 (diff) |
fix copy+paste mistakes when encoding GTP TEI in RAB Parameters
-rw-r--r-- | src/ranap_msg_factory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ranap_msg_factory.c b/src/ranap_msg_factory.c index abfcf70..c3d5afe 100644 --- a/src/ranap_msg_factory.c +++ b/src/ranap_msg_factory.c @@ -595,11 +595,11 @@ static RANAP_TransportLayerInformation_t *new_transp_info_rtp(uint32_t ip, uint1 static RANAP_TransportLayerInformation_t *new_transp_info_gtp(uint32_t ip, uint32_t tei) { RANAP_TransportLayerInformation_t *tli = CALLOC(1, sizeof(*tli)); - uint32_t binding_buf = tei; + uint32_t binding_buf = htonl(tei); new_transp_layer_addr(&tli->transportLayerAddress, ip, 1); tli->iuTransportAssociation.present = RANAP_IuTransportAssociation_PR_gTP_TEI; - OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.bindingID, + OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.gTP_TEI, (const char *) &binding_buf, sizeof(binding_buf)); return tli; @@ -720,7 +720,7 @@ struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip, uint first.rAB_Parameters = new_rab_par_data(1600000, 800000); first.userPlaneInformation = new_upi(RANAP_UserPlaneMode_transparent_mode, 1); - first.transportLayerInformation = new_transp_info_rtp(gtp_ip, gtp_tei); + first.transportLayerInformation = new_transp_info_gtp(gtp_ip, gtp_tei); /* put together the 'Second' part */ RANAP_RAB_SetupOrModifyItemSecond_t second; |