Indication Dual Address Bearer for create session request. (#1049)

* Update mme-s11-build.c

Add indication Dual Address Bearer in the create session request when the PDN is IPv4v6 Type, Info: 3GPP TS 29.274

* Update mme-s11-build.c
This commit is contained in:
R. Medeiros 2021-06-12 23:52:23 -03:00 committed by GitHub
parent 47c9f4e4a0
commit a252fae84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -42,6 +42,8 @@ ogs_pkbuf_t *mme_s11_build_create_session_request(
struct timeval now;
struct tm time_exp;
char apn[OGS_MAX_APN_LEN];
ogs_gtp_indication_t indication;
ogs_assert(sess);
session = sess->session;
@ -91,6 +93,14 @@ 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;