lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

December 2026

  • 1 participants
  • 245 discussions
[M] Change in pysim[master]: esim.saip: select a DF created by a GFM PE
by hampushellsberg 01 Dec '26

01 Dec '26
hampushellsberg has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/44216?usp=email ) Change subject: esim.saip: select a DF created by a GFM PE ...................................................................... esim.saip: select a DF created by a GFM PE SAIP V3.4.1 8.3.5: a DF or ADF created by createFCP is selected automatically, and the files that follow are created in it until a filePath selects another DF; an ADF itself is not created within the current DF. ProfileElementGFM.pe2files() kept the path of the last filePath, so those files were placed beside the DF. perform() now returns the current DF after the file it created, and creates a file with a dfName at MF level. The folder osmocom-pysim-saip-gfm-df-select of hampushellsberg-dev/PySIM-upstream-patches on GitHub has the analysis and a repro. Change-Id: I1895083980b87431738438035bd75d682d60da0e --- M pySim/esim/saip/__init__.py M tests/unittests/test_esim_saip.py 2 files changed, 52 insertions(+), 9 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/16/44216/1 diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py index e18ac8a..a2595fb 100644 --- a/pySim/esim/saip/__init__.py +++ b/pySim/esim/saip/__init__.py @@ -880,14 +880,23 @@ def pe2files(self): """Update the "files" member with the contents of the "decoded" member.""" - def perform(self, path: List[int], file_elements): - if len(file_elements): - if self.pe_sequence: - self.pe_sequence.cd(path) - file = File(None, file_elements) - file.path = path - file.pe_name = self.path_str(path + [file.fid]) - self.add_file(file, path + [file.fid]) + def perform(self, path: List[int], file_elements) -> List[int]: + """Create the file; return the current DF after it.""" + if not len(file_elements): + return path + file = File(None, file_elements) + if file.df_name: + # an ADF is not created within the current DF (SAIP V3.4.1 8.3.5) + path = [0x3f00] + if self.pe_sequence: + self.pe_sequence.cd(path) + file.path = path + file.pe_name = self.path_str(path + [file.fid]) + self.add_file(file, path + [file.fid]) + # a created DF/ADF is selected automatically (SAIP V3.4.1 8.3.5) + if file.file_type in ['MF', 'DF', 'ADF']: + return [0x3f00] if file.fid == 0x3f00 else path + [file.fid] + return path logger.debug("="*70 + " " + self.type) #logger.debug(self.decoded) @@ -907,7 +916,7 @@ #logger.debug("filePath %s -> path=%s" % (fmc2[1], path)) elif fmc2[0] == 'createFCP': # new FCP means new file; perform the old one - perform(self, path, file_elements) + path = perform(self, path, file_elements) file_elements = [('fileDescriptor', fmc2[1])] elif fmc2[0] == 'fillFileOffset' or fmc2[0] == 'fillFileContent': file_elements.append(fmc2) diff --git a/tests/unittests/test_esim_saip.py b/tests/unittests/test_esim_saip.py index 5d44de3..a300803 100755 --- a/tests/unittests/test_esim_saip.py +++ b/tests/unittests/test_esim_saip.py @@ -97,6 +97,40 @@ pe = ProfileElement.from_der(asn1.encode('ProfileElement', ('securityDomain', decoded))) self.assertEqual(pe.keys[3].to_saip_dict()['keyCounterValue'], h2b('0000000001')) + def test_gfm_created_df_is_selected(self): + """Test that the files after a DF created by a GFM PE are created in that DF.""" + def fcp(fid, fd, **kwargs): + return ('createFCP', dict(fileDescriptor=h2b(fd), fileID=h2b(fid), + securityAttributesReferenced=b'\x01', **kwargs)) + cmds = [[fcp('7f2f', '7821', pinStatusTemplateDO=h2b('010a')), + fcp('5f01', '7821', pinStatusTemplateDO=h2b('010a')), + fcp('6f01', '4121', efFileSize=b'\x02'), + ('filePath', h2b('7f2f')), + fcp('6f02', '4121', efFileSize=b'\x02')]] + gfm_der = asn1.encode('ProfileElement', ('genericFileManagement', { + 'gfm-header': {'mandated': None, 'identification': 99}, 'fileManagementCMD': cmds})) + tlvs = [] + remainder = self.per_input + while len(remainder): + first_tlv, remainder = bertlv_first_segment(remainder) + tlvs.append(first_tlv) + pes = ProfileElementSequence.from_der(b''.join(tlvs[:-1]) + gfm_der + tlvs[-1]) + gfm = pes.pe_list[-2] + self.assertEqual(sorted(gfm.files.keys()), + ['3F00/7F2F', '3F00/7F2F/5F01', '3F00/7F2F/5F01/6F01', '3F00/7F2F/6F02']) + # an ADF is created at MF level, whatever the current DF + cmds = [[fcp('7f2f', '7821', pinStatusTemplateDO=h2b('010a')), + fcp('7f5f', '7821', dfName=h2b('a000000063504b43532d3135'), + pinStatusTemplateDO=h2b('010a')), + fcp('5031', '4121', efFileSize=b'\x02'), + ('filePath', h2b('7f5f')), + fcp('5032', '4121', efFileSize=b'\x02')]] + gfm_der = asn1.encode('ProfileElement', ('genericFileManagement', { + 'gfm-header': {'mandated': None, 'identification': 99}, 'fileManagementCMD': cmds})) + pes = ProfileElementSequence.from_der(b''.join(tlvs[:-1]) + gfm_der + tlvs[-1]) + self.assertEqual(sorted(pes.pe_list[-2].files.keys()), + ['3F00/7F2F', '3F00/7F5F', '3F00/7F5F/5031', '3F00/7F5F/5032']) + def test_sequence_helpers(self): """Verify that the convenience helpers worked as expected.""" self.assertEqual([x.type for x in self.pes.pe_list], self.expected_pet_list) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/44216?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I1895083980b87431738438035bd75d682d60da0e Gerrit-Change-Number: 44216 Gerrit-PatchSet: 1 Gerrit-Owner: hampushellsberg <hampushellsberg(a)gmail.com>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: 5gc: Fix N2 HO DataForwardingNotPossible expectancies
by pespin 01 Dec '26

01 Dec '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44215?usp=email ) Change subject: 5gc: Fix N2 HO DataForwardingNotPossible expectancies ...................................................................... 5gc: Fix N2 HO DataForwardingNotPossible expectancies open5gs.git e81872963fb32757507a3e28d4372882740c7869 fixed indirect forwarding and in doing so it also fixed how the DataForwardingNotPossible IE was being set. Nowadays open5gs never sends DataForwardingNotPossible because it will always provide either direct or fallback indirect forwarding through the UPF. Change-Id: I478c303cda21d501dc74d8cdb1240798575ce507 --- M 5gc/C5G_Tests.ttcn M 5gc/ConnHdlr.ttcn 2 files changed, 13 insertions(+), 24 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/15/44215/1 diff --git a/5gc/C5G_Tests.ttcn b/5gc/C5G_Tests.ttcn index 3b188c5..89c8988 100644 --- a/5gc/C5G_Tests.ttcn +++ b/5gc/C5G_Tests.ttcn @@ -974,8 +974,7 @@ pti := g_pars.ue_pars.pti, sess_pars := g_pars.ue_pars.sess_pars, kset_id := g_pars.kset_id, - nus := nus, - exp_ho_request_data_forwarding_not_possible := not isvalue(direct_forwarding_avail) + nus := nus }); /* 3GPP TS 23.502 4.9.1.3.2 step 1: */ @@ -1003,7 +1002,7 @@ /* 3GPP TS 23.502 4.9.1.3.2 step 9+10: */ - f_n2_handover_request(ho_n2_pars.exp_ho_request_data_forwarding_not_possible); + f_n2_handover_request(); /* 3GPP TS 23.502 4.9.1.3.3 step 4 */ COORD.receive("HANDOVER_COMMAND_CONFIRM"); @@ -1101,7 +1100,7 @@ f_create_ngap_expect_proc(id_HandoverResourceAllocation, self); /* 3GPP TS 23.502 4.9.1.3.2 step 9+10: */ - f_n2_handover_request(true); + f_n2_handover_request(); /* Expect to get a release on the target gNB due to cancelled Handover: */ as_ngap_handle_UeContextReleaseCmd(exp_cause := mw_cause_radioNetwork(handover_cancelled)); diff --git a/5gc/ConnHdlr.ttcn b/5gc/ConnHdlr.ttcn index a000830..87c330d 100644 --- a/5gc/ConnHdlr.ttcn +++ b/5gc/ConnHdlr.ttcn @@ -134,9 +134,7 @@ ProcedureTransactionIdentifier pti, PDUSessionParams sess_pars, NAS_KeySetIdentifier kset_id, - NG_NAS_UE_State nus /* 3GPP TS 38.423 9.2.1.13 UE Context Information */, - /* Whether to expect received HO Request should contain a DataForwardingNotPossible IE: */ - boolean exp_ho_request_data_forwarding_not_possible + NG_NAS_UE_State nus /* 3GPP TS 38.423 9.2.1.13 UE Context Information */ }; type port ConnHdlr_Coord_PT message @@ -370,14 +368,12 @@ } /* Handle a PDUSessionResourceSetupRequestTransfer and return a Result */ -private function f_pdu_handle_PDUSessionResourceSetupRequestTransfer(NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf, - boolean exp_data_forwarding_not_possible) +private function f_pdu_handle_PDUSessionResourceSetupRequestTransfer(NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf) runs on ConnHdlr return NGAP_IEs.PDUSessionResourceSetupResponseTransfer { var template (value) UPTransportLayerInformation utla; var template (value) QosFlowPerTNLInformation qos; var NGAP_IEs.PDUSessionResourceSetupResponseTransfer setup_resp_transf; var integer qos_id := 0; - var boolean found_data_forwarding_not_possible := false; for (var integer i := 0; i < lengthof(setup_req_transf.protocolIEs); i := i + 1) { select (setup_req_transf.protocolIEs[i].id) { @@ -389,18 +385,12 @@ case (id_QosFlowSetupRequestList) { var QosFlowSetupRequestList qos_req_li := setup_req_transf.protocolIEs[i].value_.QosFlowSetupRequestList; qos_id := qos_req_li[0].qosFlowIdentifier; - } + } case (id_DataForwardingNotPossible) { - found_data_forwarding_not_possible := true; + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + "PDUSessionResourceSetupRequestTransfer: unexpected DataForwardingNotPossible IE received"); + } } - } - } - - if (exp_data_forwarding_not_possible != found_data_forwarding_not_possible) { - Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, - log2str("PDUSessionResourceSetupRequestTransfer: DataForwardingNotPossible IE: received presence ", - found_data_forwarding_not_possible, " vs exp ", - exp_data_forwarding_not_possible)); } /* Prepare Response for it: */ @@ -423,7 +413,7 @@ /* Parse PDUSessionResourceSetupRequestTransfer contained inside InitialContextSetupRequest's PDUSessionResourceSetup Item: */ setup_req_transf := dec_NGAP_PDUSessionResourceSetupRequestTransfer(req.pDUSessionResourceSetupRequestTransfer); - setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf, false); + setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf); setup_trans_enc := enc_NGAP_PDUSessionResourceSetupResponseTransfer(setup_resp_transf) resp := valueof(m_pDUSessionResourceSetupItemCxtRes(req.pDUSessionID, setup_trans_enc)); @@ -496,7 +486,7 @@ /* Parse PDUSessionResourceSetupRequestTransfer contained inside InitialContextSetupRequest's PDUSessionResourceSetup Item: */ setup_req_transf := dec_NGAP_PDUSessionResourceSetupRequestTransfer(req.pDUSessionResourceSetupRequestTransfer); - setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf, false); + setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf); setup_trans_enc := enc_NGAP_PDUSessionResourceSetupResponseTransfer(setup_resp_transf) resp := valueof(m_pDUSessionResourceSetupItemSURes(req.pDUSessionID, setup_trans_enc)); @@ -1185,7 +1175,7 @@ /* 3GPP TS 38.413 9.2.3.4 HANDOVER REQUEST * 3GPP TS 23.502 4.9.1.3.2 step 9+10 */ -function f_n2_handover_request(boolean exp_ho_request_data_forwarding_not_possible := true) runs on ConnHdlr +function f_n2_handover_request() runs on ConnHdlr { var template (value) QosFlowItemWithDataForwarding qos; var template (value) HandoverRequestAcknowledgeTransfer transfer; @@ -1213,7 +1203,7 @@ var NGAP_IEs.PDUSessionResourceSetupRequestTransfer setup_req_transf; var NGAP_IEs.PDUSessionResourceSetupResponseTransfer setup_resp_transf; setup_req_transf := dec_NGAP_PDUSessionResourceSetupRequestTransfer(res_it.handoverRequestTransfer); - setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf, exp_ho_request_data_forwarding_not_possible); + setup_resp_transf := f_pdu_handle_PDUSessionResourceSetupRequestTransfer(setup_req_transf); qos_id := setup_resp_transf.dLQosFlowPerTNLInformation.associatedQosFlowList[0].qosFlowIdentifier; } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44215?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I478c303cda21d501dc74d8cdb1240798575ce507 Gerrit-Change-Number: 44215 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ci[master]: jobs/ttcn3: disable sepp latest for now
by osmith 01 Dec '26

01 Dec '26
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/44214?usp=email ) Change subject: jobs/ttcn3: disable sepp latest for now ...................................................................... jobs/ttcn3: disable sepp latest for now As discussed in the team meeting, let's disable this until we have a new open5gs release as it is currently expected to fail. Change-Id: Iec990920255c1da914604f49fde0653119efdda8 --- M jobs/ttcn3-testsuites-testenv.yml 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/14/44214/1 diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml index d9da11f..7270fc1 100644 --- a/jobs/ttcn3-testsuites-testenv.yml +++ b/jobs/ttcn3-testsuites-testenv.yml @@ -559,6 +559,7 @@ - ttcn3-sepp-test-ogs-latest: testsuite: sepp + disabled: true # Until open5gs > v2.8.0 is tagged args: -b osmocom:latest timer: H 13 * * * -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/44214?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Iec990920255c1da914604f49fde0653119efdda8 Gerrit-Change-Number: 44214 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de>
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by pespin 01 Dec '26

01 Dec '26
Attention is currently required from: falconia, fixeria. pespin has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email ) Change subject: gsm: new struct and en/decoding functions for BC-IE ...................................................................... Patch Set 3: Code-Review+1 (1 comment) File include/osmocom/gsm/gsm48_ie.h: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/67eadd4b_ba5f7b12?… : PS2, Line 25: #define OSMO_BCAP_MAX_SPEECH_VER 9 > We are about to head into 2027, and the specs for GSM have been frozen for what, two decades now? Bu […] Done -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ie864734fe1dfd1587bafddd4248ce69a7e066525 Gerrit-Change-Number: 44192 Gerrit-PatchSet: 3 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Tue, 01 Dec 2026 09:51:52 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: falconia <falcon(a)freecalypso.org>
1 0
0 0
[M] Change in libosmocore[master]: gsm BC-IE: add functions for specific rules in each direction
by pespin 01 Dec '26

01 Dec '26
Attention is currently required from: falconia. pespin has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44193?usp=email ) Change subject: gsm BC-IE: add functions for specific rules in each direction ...................................................................... Patch Set 3: Code-Review+1 (1 comment) Patchset: PS3: In that case I still think it's probably better to have 2 APIs instead of 3: one to encode ms side and one to encode netwrok side. I don't like the APIs having this unnecessary extra strep, but leaving to others to decide. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44193?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: If3819b29ea9f9702ffc4f1b7f6dedb21e9ec15de Gerrit-Change-Number: 44193 Gerrit-PatchSet: 3 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Tue, 01 Dec 2026 09:46:43 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 22
  • 23
  • 24
  • 25
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.