Changed TEID to network byte order.

This commit is contained in:
Pedro Alvarez 2017-11-27 19:14:37 +00:00
parent 6cd055e80e
commit 831f7b00b6
1 changed files with 5 additions and 1 deletions

View File

@ -571,8 +571,12 @@ s1ap::send_initial_context_setup_request(uint32_t mme_ue_s1ap_id, struct srslte:
m_s1ap_log->error("Did not receive S1-U TEID in create session response\n");
return false;
}
erab_ctxt->transportLayerAddress = cs_resp->eps_bearer_context_created.s1_u_sgw_f_teid.ipv4;
memcpy(erab_ctxt->gTP_TEID.buffer, cs_resp->eps_bearer_context_created.sender_f_teid.teid, sizeof(uint64_t));
uint64_t tmp_teid;
tmp_teid = HTONLL(cs_resp->eps_bearer_context_created.sender_f_teid.teid);
memcpy(erab_ctxt->gTP_TEID.buffer, tmp_teid, sizeof(uint64_t));
in_ctxt_req->UESecurityCapabilities =;
in_ctxt_req->SecurityKey = ;