[MME] refine the pull request #1049

This commit is contained in:
Sukchan Lee 2021-06-13 12:03:36 +09:00
parent a252fae84f
commit 9e664a744b
1 changed files with 8 additions and 8 deletions

View File

@ -93,14 +93,6 @@ ogs_pkbuf_t *mme_s11_build_create_session_request(
req->rat_type.presence = 1;
req->rat_type.u8 = OGS_GTP_RAT_TYPE_EUTRAN;
if(session->session_type == OGS_PDU_SESSION_TYPE_IPV4V6 && sess->request_type.type == OGS_NAS_EPS_PDN_TYPE_IPV4V6) {
memset(&indication, 0, sizeof(ogs_gtp_indication_t));
indication.daf = 1;
req->indication_flags.presence = 1;
req->indication_flags.data = &indication;
req->indication_flags.len = sizeof(ogs_gtp_indication_t);
}
memset(&mme_s11_teid, 0, sizeof(ogs_gtp_f_teid_t));
mme_s11_teid.interface_type = OGS_GTP_F_TEID_S11_MME_GTP_C;
@ -204,6 +196,14 @@ ogs_pkbuf_t *mme_s11_build_create_session_request(
memcpy(session->paa.addr6, &addr, OGS_IPV6_LEN);
}
if (req->pdn_type.u8 == OGS_PDU_SESSION_TYPE_IPV4V6) {
memset(&indication, 0, sizeof(ogs_gtp_indication_t));
indication.daf = 1;
req->indication_flags.presence = 1;
req->indication_flags.data = &indication;
req->indication_flags.len = sizeof(ogs_gtp_indication_t);
}
session->paa.session_type = req->pdn_type.u8;
req->pdn_address_allocation.data = &session->paa;
if (req->pdn_type.u8 == OGS_PDU_SESSION_TYPE_IPV4)