From fead1affaacc9a6e9d218a8c18c3f1edf1b4a61f Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 13 Jul 2018 18:53:44 +0100 Subject: [PATCH] Continue to cleanup s1ap_ctx_managment. --- srsepc/src/mme/s1ap_ctx_mngmt_proc.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc index 823b4d756..4e20d8d33 100644 --- a/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc +++ b/srsepc/src/mme/s1ap_ctx_mngmt_proc.cc @@ -120,10 +120,8 @@ s1ap_ctx_mngmt_proc::send_initial_context_setup_request(emm_ctx_t *emm_ctx, //Set E-RAB S-GW F-TEID erab_ctx_req->transportLayerAddress.n_bits = 32; //IPv4 - uint32_t sgw_s1u_ip = htonl(erab_ctx->sgw_s1u_fteid.ipv4); - //uint32_t sgw_s1u_ip = cs_resp->eps_bearer_context_created.s1_u_sgw_f_teid.ipv4; - uint8_t *tmp_ptr = erab_ctx_req->transportLayerAddress.buffer; - liblte_value_2_bits(sgw_s1u_ip, &tmp_ptr, 32);//FIXME consider ipv6 + uint32_t sgw_s1u_ip = htonl(esm_ctx->sgw_s1u_fteid.ipv4); + liblte_value_2_bits(sgw_s1u_ip, (uint8_t**) &erab_ctx_req->transportLayerAddress.buffer, 32); uint32_t sgw_s1u_teid = esm_ctx->sgw_s1u_fteid.teid; memcpy(erab_ctx_req->gTP_TEID.buffer, &sgw_s1u_teid, sizeof(uint32_t));