Skip to content

Commit

Permalink
[MME] Store received PGW S5C IP address in mme_sess_t
Browse files Browse the repository at this point in the history
This information will be required by the Gn interface in MME when
answering an SGSN with an "SGSN Context Response" message during MS cell
reselection EUTRAN->GERAN.
  • Loading branch information
pespin committed Dec 18, 2023
1 parent 4eb4a93 commit 5ef6f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mme/mme-context.h
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ typedef struct mme_sess_s {
uint8_t pti; /* Procedure Trasaction Identity */

uint32_t pgw_s5c_teid;
ogs_ip_t pgw_s5c_ip;

/* PDN Connectivity Request */
ogs_nas_request_type_t request_type;
Expand Down
2 changes: 2 additions & 0 deletions src/mme/mme-s11-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ void mme_s11_handle_create_session_response(
if (rsp->pgw_s5_s8__s2a_s2b_f_teid_for_pmip_based_interface_or_for_gtp_based_control_plane_interface.presence) {
pgw_s5c_teid = rsp->pgw_s5_s8__s2a_s2b_f_teid_for_pmip_based_interface_or_for_gtp_based_control_plane_interface.data;
sess->pgw_s5c_teid = be32toh(pgw_s5c_teid->teid);
ogs_assert(OGS_OK ==
ogs_gtp2_f_teid_to_ip(pgw_s5c_teid, &sess->pgw_s5c_ip));
}

/* PDN Addresss Allocation */
Expand Down

0 comments on commit 5ef6f96

Please sign in to comment.