Commit 7d9b4db5 authored by Robert Schmidt's avatar Robert Schmidt

Correctly copy in_addr for GTP F1 tunnel update

parent 26a69234
...@@ -85,16 +85,13 @@ void CU_update_UP_DL_tunnel(e1ap_bearer_setup_req_t *const req, instance_t insta ...@@ -85,16 +85,13 @@ void CU_update_UP_DL_tunnel(e1ap_bearer_setup_req_t *const req, instance_t insta
for (int j=0; j < req->pduSessionMod[i].numDRB2Modify; j++) { for (int j=0; j < req->pduSessionMod[i].numDRB2Modify; j++) {
DRB_nGRAN_to_setup_t *drb_p = req->pduSessionMod[i].DRBnGRanModList + j; DRB_nGRAN_to_setup_t *drb_p = req->pduSessionMod[i].DRBnGRanModList + j;
transport_layer_addr_t newRemoteAddr; in_addr_t addr = {0};
newRemoteAddr.length = 32; // IPv4 memcpy(&addr, &drb_p->DlUpParamList[0].tlAddress, sizeof(in_addr_t));
memcpy(newRemoteAddr.buffer,
&drb_p->DlUpParamList[0].tlAddress,
sizeof(in_addr_t));
GtpuUpdateTunnelOutgoingAddressAndTeid(instance, GtpuUpdateTunnelOutgoingAddressAndTeid(instance,
(ue_id & 0xFFFF), (ue_id & 0xFFFF),
(ebi_t)drb_p->id, (ebi_t)drb_p->id,
*(in_addr_t*)&newRemoteAddr.buffer, addr,
drb_p->DlUpParamList[0].teId); drb_p->DlUpParamList[0].teId);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment