Skip to content

Commit

Permalink
MME: Gn: Avoid overwriting subscriber data from HSS
Browse files Browse the repository at this point in the history
  • Loading branch information
pespin committed May 22, 2024
1 parent c6c73c1 commit d21469b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mme/mme-gn-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ static mme_sess_t *mme_ue_session_from_gtp1_pdp_ctx(mme_ue_t *mme_ue, const ogs_
}
ogs_sess->smf_ip = gtp1_pdp_ctx->ggsn_address_c;
ogs_sess->context_identifier = gtp1_pdp_ctx->pdp_ctx_id;
ogs_sess->session_type = gtp1_pdp_ctx->pdp_type_num[0];
ogs_sess->ue_ip = gtp1_pdp_ctx->pdp_address[0];
/* TODO: sess->paa with gtp1_pdp_ctx->pdp_address[0],
using/implementing ogs_gtp2_ip_to_paa ? */
ogs_ip_to_paa(&ogs_sess->ue_ip, &ogs_sess->paa);
ogs_ip_to_paa(&gtp1_pdp_ctx->pdp_address[0], &ogs_sess->paa);

/* 3GPP TS 23.060 section 9.2.1A: "The QoS profiles of the PDP context and EPS bearer are mapped as specified in TS 23.401"
* 3GPP TS 23.401 Annex E: "Mapping between EPS and Release 99 QoS parameters"
Expand All @@ -266,7 +262,7 @@ static mme_sess_t *mme_ue_session_from_gtp1_pdp_ctx(mme_ue_t *mme_ue, const ogs_
sess->session = ogs_sess;
sess->pgw_s5c_teid = gtp1_pdp_ctx->ul_teic;
sess->pgw_s5c_ip = gtp1_pdp_ctx->ggsn_address_c;
switch (ogs_sess->session_type) {
switch (gtp1_pdp_ctx->pdp_type_num[0]) {
case OGS_PDU_SESSION_TYPE_IPV4:
sess->request_type.type = OGS_NAS_EPS_PDN_TYPE_IPV4;
break;
Expand Down

0 comments on commit d21469b

Please sign in to comment.