From 4fef5f8e57a1756f5f6d8c7f8eb19f76076557d6 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 24 Feb 2026 12:36:08 +0100 Subject: [PATCH] [MME] S6a ULR: Place Vendor-Specific-Application-Id in correct position As described in 3GPP TS 29.272 clause 7.2.3, Vendor-Specific-Application-Id goes around the start of the message, not at the end. --- src/mme/mme-fd-path.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mme/mme-fd-path.c b/src/mme/mme-fd-path.c index 77048fc54..a28beeaea 100644 --- a/src/mme/mme-fd-path.c +++ b/src/mme/mme-fd-path.c @@ -1,4 +1,4 @@ -/* +/* 3GPP TS 29.272 S6a * Copyright (C) 2019-2025 by Sukchan Lee * * This file is part of Open5GS. @@ -1302,6 +1302,11 @@ void mme_s6a_send_ulr(enb_ue_t *enb_ue, mme_ue_t *mme_ue) ret = fd_msg_sess_get(fd_g_config->cnf_dict, req, &session, NULL); ogs_assert(ret == 0); + /* Set Vendor-Specific-Application-Id AVP */ + ret = ogs_diam_message_vendor_specific_appid_set( + req, OGS_DIAM_S6A_APPLICATION_ID); + ogs_assert(ret == 0); + /* Set the Auth-Session-State AVP */ ret = fd_msg_avp_new(ogs_diam_auth_session_state, 0, &avp); ogs_assert(ret == 0); @@ -1393,11 +1398,6 @@ void mme_s6a_send_ulr(enb_ue_t *enb_ue, mme_ue_t *mme_ue) ret = fd_msg_avp_add(req, MSG_BRW_LAST_CHILD, avp); ogs_assert(ret == 0); - /* Set Vendor-Specific-Application-Id AVP */ - ret = ogs_diam_message_vendor_specific_appid_set( - req, OGS_DIAM_S6A_APPLICATION_ID); - ogs_assert(ret == 0); - ret = clock_gettime(CLOCK_REALTIME, &sess_data->ts); ogs_assert(ret == 0);