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 -----
  • 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

September 2026

  • 1 participants
  • 1894 discussions
[S] Change in osmo-ttcn3-hacks[master]: GTPv2_Emulation: Fix SeqTable entries never reused after unregister
by pespin 30 Sep '26

30 Sep '26
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43733?usp=email ) Change subject: GTPv2_Emulation: Fix SeqTable entries never reused after unregister ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43733?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I8d4d8f0de6fb3253d5876ebb9724750869ad5e06 Gerrit-Change-Number: 43733 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Wed, 30 Sep 2026 08:21:16 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: smf: Test 4G IPv6/IPv4v6 sessions
by pespin 30 Sep '26

30 Sep '26
Attention is currently required from: fixeria. pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43732?usp=email ) Change subject: smf: Test 4G IPv6/IPv4v6 sessions ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43732?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ic2fca0a7efad56ec9fc5e1bc2665f86626ead856 Gerrit-Change-Number: 43732 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 30 Sep 2026 08:21:14 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: PFCP_Templates: Multiple improvements
by pespin 30 Sep '26

30 Sep '26
Attention is currently required from: fixeria, jolly. pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43731?usp=email ) Change subject: PFCP_Templates: Multiple improvements ...................................................................... Patch Set 4: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43731?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I6e6bc92d26e0b4041ef56f5c8d7eb23d4c302529 Gerrit-Change-Number: 43731 Gerrit-PatchSet: 4 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 30 Sep 2026 08:21:12 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Add test to verify IPAd polling non forbidden eIMs only
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43706?usp=email ) Change subject: IPAd: Add test to verify IPAd polling non forbidden eIMs only ...................................................................... IPAd: Add test to verify IPAd polling non forbidden eIMs only A command line options allows to block forbidden eIMs. Verify that the eIM with the given eIM ID is not polled. The other eIM is expected to be polled. Related: SYS#8101 Change-Id: Ib946fee6ad8a448cfa4411966e3d4927cbf30033 --- M ipad/IPAd_Tests.ttcn 1 file changed, 23 insertions(+), 5 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 105a53d..4eb6843 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -106,7 +106,8 @@ type record EimConfigParam { charstring eim_id, - charstring eim_fqdn optional + charstring eim_fqdn optional, + boolean skip }; type record of EimConfigParam EimConfigParamList; @@ -115,7 +116,7 @@ EimConfigParamList eim_list }; -private function f_init_pars(EimConfigParamList eim_list := { { eim_id := "myEIM", eim_fqdn := omit } }) +private function f_init_pars(EimConfigParamList eim_list := { { eim_id := "myEIM", eim_fqdn := omit, skip := false } }) runs on MTC_CT return IPAd_ConnHdlrPars { var IPAd_ConnHdlrPars pars := { eim_list := eim_list @@ -804,11 +805,16 @@ var integer i; var boolean do_next_eim := false; - f_exec_ipad(); + f_exec_ipad("-f skipEIM"); f_es10x_init(); f_http_register(); for (i := 0; i < sizeof(g_pars.eim_list); i := i + 1) { + /* We expect a skipped eIM not to be polled. */ + if (g_pars.eim_list[i].skip) { + continue; + } + if (do_next_eim) { /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ f_respond_empty_notifications(); @@ -842,8 +848,19 @@ testcase TC_proc_euicc_data_req_2eim() runs on MTC_CT { var charstring id := testcasename(); - var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "myEIM_1", eim_fqdn := omit }, - { eim_id := "myEIM_2", eim_fqdn := omit } }); + var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "myEIM_1", eim_fqdn := omit, skip := false }, + { eim_id := "myEIM_2", eim_fqdn := omit, skip := false } }); + var IPAd_ConnHdlr vc_conn; + f_init(id); + vc_conn := f_start_handler(refers(f_TC_proc_euicc_data_req), pars); + vc_conn.done; + setverdict(pass); +} + +testcase TC_proc_euicc_data_req_2eim_skip() runs on MTC_CT { + var charstring id := testcasename(); + var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "skipEIM", eim_fqdn := omit, skip := true }, + { eim_id := "myEIM_2", eim_fqdn := omit, skip := false } }); var IPAd_ConnHdlr vc_conn; f_init(id); vc_conn := f_start_handler(refers(f_TC_proc_euicc_data_req), pars); @@ -1289,6 +1306,7 @@ execute ( TC_proc_euicc_pkg_dwnld_exec_rollback() ); execute ( TC_proc_euicc_data_req() ); execute ( TC_proc_euicc_data_req_2eim() ); + execute ( TC_proc_euicc_data_req_2eim_skip() ); execute ( TC_get_eim_pkg_req_rej() ); execute ( TC_func_exec_fallback_mech() ); execute ( TC_func_ret_from_fallback() ); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43706?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib946fee6ad8a448cfa4411966e3d4927cbf30033 Gerrit-Change-Number: 43706 Gerrit-PatchSet: 5 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: IPAd: Remove unused variables
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43703?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: IPAd: Remove unused variables ...................................................................... IPAd: Remove unused variables Related: SYS#8101 Change-Id: I149c63901eef3cba658e35023fc456af04f36cda --- M ipad/IPAd_Tests.ttcn 1 file changed, 0 insertions(+), 4 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 261fcd8..105a53d 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -853,10 +853,6 @@ /* A testcase to try out what happens when the eIM package request is rejected */ private function f_TC_get_eim_pkg_req_rej(charstring id) runs on IPAd_ConnHdlr { - var EsipaMessageFromIpaToEim esipa_req; - var EsipaMessageFromEimToIpa esipa_res; - var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); - f_exec_ipad(); f_es10x_init(); f_http_register(); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43703?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I149c63901eef3cba658e35023fc456af04f36cda Gerrit-Change-Number: 43703 Gerrit-PatchSet: 5 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Add test to verify IPAd polling from two eIMs
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657?usp=email ) ( 5 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: IPAd: Add test to verify IPAd polling from two eIMs ...................................................................... IPAd: Add test to verify IPAd polling from two eIMs Provide an eIM configuration with two eIMs. Expect the IPAd to poll both eIMs for a package and processing it. Related: SYS#8101 Change-Id: I87d62196f7e0b96070d162faf8f382ebba3fa017 --- M ipad/IPAd_Tests.ttcn 1 file changed, 12 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index a3a9ea0..261fcd8 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -840,6 +840,17 @@ setverdict(pass); } +testcase TC_proc_euicc_data_req_2eim() runs on MTC_CT { + var charstring id := testcasename(); + var IPAd_ConnHdlrPars pars := f_init_pars({ { eim_id := "myEIM_1", eim_fqdn := omit }, + { eim_id := "myEIM_2", eim_fqdn := omit } }); + var IPAd_ConnHdlr vc_conn; + f_init(id); + vc_conn := f_start_handler(refers(f_TC_proc_euicc_data_req), pars); + vc_conn.done; + setverdict(pass); +} + /* A testcase to try out what happens when the eIM package request is rejected */ private function f_TC_get_eim_pkg_req_rej(charstring id) runs on IPAd_ConnHdlr { var EsipaMessageFromIpaToEim esipa_req; @@ -1281,6 +1292,7 @@ execute ( TC_proc_euicc_pkg_dwnld_exec() ); execute ( TC_proc_euicc_pkg_dwnld_exec_rollback() ); execute ( TC_proc_euicc_data_req() ); + execute ( TC_proc_euicc_data_req_2eim() ); execute ( TC_get_eim_pkg_req_rej() ); execute ( TC_func_exec_fallback_mech() ); execute ( TC_func_ret_from_fallback() ); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I87d62196f7e0b96070d162faf8f382ebba3fa017 Gerrit-Change-Number: 43657 Gerrit-PatchSet: 6 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: IPAd: Add support for testing IPAd polling multiple eIMs
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43656?usp=email ) Change subject: IPAd: Add support for testing IPAd polling multiple eIMs ...................................................................... IPAd: Add support for testing IPAd polling multiple eIMs A record is used to generate and send an EimConfigurationDataResponse to the IPAd with multiple eIMs in the EimConfigurationData list. Tests can use this to verify that all eIMs are polled correctly. Note that all eIMs share the same FQDN by default. This makes the test cases easier, because they don't require different HTTP servers at a time or need to change the HTTP server address. Related: SYS#8101 Change-Id: I14c3f09a4c21d5f643e6e499a095410b6c8f02ed --- M ipad/IPAd_Tests.ttcn M library/euicc/SGP32Definitions_Templates.ttcn 2 files changed, 57 insertions(+), 16 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 5fc6dfe..a3a9ea0 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -104,14 +104,21 @@ port PIPEasp_PT PIPE; }; -type record IPAd_ConnHdlrPars { - /* TODO: add some useful parameters */ +type record EimConfigParam { + charstring eim_id, + charstring eim_fqdn optional }; -private function f_init_pars() +type record of EimConfigParam EimConfigParamList; + +type record IPAd_ConnHdlrPars { + EimConfigParamList eim_list +}; + +private function f_init_pars(EimConfigParamList eim_list := { { eim_id := "myEIM", eim_fqdn := omit } }) runs on MTC_CT return IPAd_ConnHdlrPars { var IPAd_ConnHdlrPars pars := { - /* TODO: fill parameters with meaninful values */ + eim_list := eim_list }; return pars; } @@ -320,7 +327,6 @@ private function f_es10x_init(boolean iot := true, boolean eim_init := true, OCT1 dev_capa := '00'O) runs on IPAd_ConnHdlr { - var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); var octetstring term_capa; /* If we decide not to use vpcd, then we must not initialize anything here */ @@ -353,14 +359,36 @@ /* Not all tests expect IPAd to query eUICC data and notfications before talking to eIM. */ if (eim_init) { - /* Expect the IPAd to query the eIM configuration data from the eUICC */ - f_vpcd_transceive(enc_GetEimConfigurationDataResponse(valueof(ts_getEimConfigurationDataResponse(eim_fqdn))), 'BF5500'O); - - /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ - f_vpcd_transceive(enc_RetrieveNotificationsListResponse(valueof(ts_retrieveNotificationsListResponse_empty)), 'BF2B00'O); + f_eim_init(); } } +private function f_eim_init() runs on IPAd_ConnHdlr { + var charstring default_eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); + var template (value) GetEimConfigurationDataResponse v_getEimConfigurationDataResponse := { + eimConfigurationDataList := {} + }; + var integer i; + + for (i := 0; i < sizeof(g_pars.eim_list); i := i + 1) { + var charstring eim_fqdn := default_eim_fqdn; + + if (ispresent(g_pars.eim_list[i].eim_fqdn)) { + eim_fqdn := g_pars.eim_list[i].eim_fqdn; + } + v_getEimConfigurationDataResponse.eimConfigurationDataList[i] := ts_eimConfigurationData( + eimFqdn := eim_fqdn, + eimId := g_pars.eim_list[i].eim_id + ); + } + + /* Expect the IPAd to query the eIM configuration data from the eUICC */ + f_vpcd_transceive(enc_GetEimConfigurationDataResponse(valueof(v_getEimConfigurationDataResponse)), 'BF5500'O); + + /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ + f_vpcd_transceive(enc_RetrieveNotificationsListResponse(valueof(ts_retrieveNotificationsListResponse_empty)), 'BF2B00'O); +} + /* Handle the closing of logical channel 1 */ private function f_es10x_close() runs on IPAd_ConnHdlr { @@ -773,14 +801,26 @@ f_respond_empty_notifications(); } private function f_TC_proc_euicc_data_req(charstring id) runs on IPAd_ConnHdlr { + var integer i; + var boolean do_next_eim := false; + f_exec_ipad(); f_es10x_init(); f_http_register(); - f_package_euicc_data_req(id); + for (i := 0; i < sizeof(g_pars.eim_list); i := i + 1) { + if (do_next_eim) { + /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ + f_respond_empty_notifications(); + } - /* IPAd will poll for eIM package. */ - f_terminate_poll_cycle(); + f_package_euicc_data_req(id); + + /* IPAd will poll for eIM package. */ + f_terminate_poll_cycle(); + + do_next_eim := true; + } /* Wait some time until the the last HTTP response is actually delivered */ f_sleep(2.0); diff --git a/library/euicc/SGP32Definitions_Templates.ttcn b/library/euicc/SGP32Definitions_Templates.ttcn index ab27369..3ca293d 100644 --- a/library/euicc/SGP32Definitions_Templates.ttcn +++ b/library/euicc/SGP32Definitions_Templates.ttcn @@ -1656,8 +1656,9 @@ indirectProfileDownload := * } template (value) EimConfigurationData -ts_eimConfigurationData(template (omit) charstring eimFqdn := omit) := { - eimId := "myEIM", +ts_eimConfigurationData(template (omit) charstring eimFqdn := omit, + template (value) charstring eimId := "myEIM") := { + eimId := eimId, eimFqdn := eimFqdn, eimIdType := omit, counterValue := omit, @@ -1675,7 +1676,7 @@ template (value) GetEimConfigurationDataResponse ts_getEimConfigurationDataResponse(template (value) charstring eimFqdn := "127.0.0.1") := { eimConfigurationDataList := { - ts_eimConfigurationData(eimFqdn) + ts_eimConfigurationData(eimFqdn := eimFqdn) } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43656?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I14c3f09a4c21d5f643e6e499a095410b6c8f02ed Gerrit-Change-Number: 43656 Gerrit-PatchSet: 5 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Make existing tests work with multi eIM support
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43655?usp=email ) Change subject: IPAd: Make existing tests work with multi eIM support ...................................................................... IPAd: Make existing tests work with multi eIM support The behavior of the IPAd implementation has changed. Now at the end of the poll cycle, the IPAd will request eIM configuration data from eUICC again, to check for a second eIM. If this second eIM is not provided by eUICC, the IPAd will terminate. Related: SYS#8101 Change-Id: Id67bb3acc3f90805b06f441c5352ba29a28698c4 --- M ipad/IPAd_Tests.ttcn 1 file changed, 7 insertions(+), 4 deletions(-) Approvals: dexter: Looks good to me, approved Jenkins Builder: Verified diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 226c70b..5fc6dfe 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -459,9 +459,11 @@ /* After processing notifications and eIM packages, IPAd will poll again. * Respond with no eIM package. */ -private function f_terminate_poll_cycle() runs on IPAd_ConnHdlr { - /* IPAd requests a package, we tell it that there is no package available */ - f_esipa_transceive(valueof(ts_getEimPackageResponse_noEimPackageAvailable), tr_getEimPackageRequest); +private function f_terminate_poll_cycle(integer eimPackageError := 1) runs on IPAd_ConnHdlr { + var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); + + /* IPAd requests a package, we tell it that there is no package available (error 1) or any other given error. */ + f_esipa_transceive(valueof(ts_getEimPackageResponse_eimPkgErr(eimPackageError)), tr_getEimPackageRequest); } /* Run IPAd once in the background. @@ -802,13 +804,14 @@ private function f_TC_get_eim_pkg_req_rej(charstring id) runs on IPAd_ConnHdlr { var EsipaMessageFromIpaToEim esipa_req; var EsipaMessageFromEimToIpa esipa_res; + var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); f_exec_ipad(); f_es10x_init(); f_http_register(); /* IPAd requests a package, we respond with an eimPackageError code 127 (undefined error) */ - f_esipa_transceive(valueof(ts_getEimPackageResponse_eimPkgErr(127)), tr_getEimPackageRequest); + f_terminate_poll_cycle(127); /* Wait some time until the the last HTTP response is actually delivered */ f_sleep(2.0); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43655?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Id67bb3acc3f90805b06f441c5352ba29a28698c4 Gerrit-Change-Number: 43655 Gerrit-PatchSet: 4 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[M] Change in onomondo-ipa[master]: Add option to forbid polling given eIM(s)
by jolly 30 Sep '26

30 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43705?usp=email ) Change subject: Add option to forbid polling given eIM(s) ...................................................................... Add option to forbid polling given eIM(s) An eUICC may have eIM configuration data of one or more eIMs that cannot be removed. Prevent polling theses eIMs by adding an option that blocks one or multiple eIM IDs. Prevent redundant reading of eIM configuration data for every iteration of the loop that runs through all eIMs and that skips forbidden eIMs. Therefore move ipa_es10b_get_eim_cfg_data (and ipa_es10b_get_eim_cfg_data_free) outside that loop. Related: SYS#8101 Change-Id: Ic6489207e54cdfff57cd214482ac4a071e154c94 --- M include/onomondo/ipa/ipad.h M src/ipa/libipa/ipad.c M src/ipa/main.c 3 files changed, 48 insertions(+), 21 deletions(-) Approvals: dexter: Looks good to me, approved Jenkins Builder: Verified diff --git a/include/onomondo/ipa/ipad.h b/include/onomondo/ipa/ipad.h index af8de91..4aecb65 100644 --- a/include/onomondo/ipa/ipad.h +++ b/include/onomondo/ipa/ipad.h @@ -12,6 +12,7 @@ #define IPA_LEN_TAC 4 #define IPA_LEN_ALLOWED_CA 20 #define IPE_LEN_EIM_ID 256 +#define IPA_MAX_FORBIDDEN_IDS 5 struct ipa_context; struct ipa_buf; @@ -45,6 +46,8 @@ * used.) */ char *preferred_eim_id; + char *forbidden_eim_ids[IPA_MAX_FORBIDDEN_IDS]; + /*! force the IPAd to process only one eUICC package (debug, use with caution) */ bool one_euicc_pkg_only; diff --git a/src/ipa/libipa/ipad.c b/src/ipa/libipa/ipad.c index fa91961..7427884 100644 --- a/src/ipa/libipa/ipad.c +++ b/src/ipa/libipa/ipad.c @@ -354,31 +354,34 @@ return -EINVAL; } -static int eim_init(struct ipa_context *ctx, int index) +static int eim_init(struct ipa_context *ctx, struct ipa_es10b_eim_cfg_data *eim_cfg_data, int index) { - struct ipa_es10b_eim_cfg_data *eim_cfg_data = NULL; struct EimConfigurationData *eim_cfg_data_item = NULL; - int rc = -EINVAL; - - eim_cfg_data = ipa_es10b_get_eim_cfg_data(ctx); - if (!eim_cfg_data) { - IPA_LOGP(SIPA, LERROR, "cannot read EimConfigurationData from eUICC\n"); - goto error; - } + int rc; /* In case no preferred_eim_id is set, the eIM configuration item of the given index will be pulled from the list */ rc = ipa_es10b_get_eim_cfg_data_filter(&eim_cfg_data_item, eim_cfg_data, ctx->cfg->preferred_eim_id, index); if (rc) { if (rc != -ENOENT) IPA_LOGP(SIPA, LERROR, "no suitable EimConfigurationData item present.\n"); - goto error; + return rc; + } + /* Skip blocked eIM IDs. Return -EACCES in this case. */ + if (!ctx->cfg->preferred_eim_id || ctx->cfg->preferred_eim_id[0] == '\0') { + int i; + const char *eim_id; + + for (i = 0; (eim_id = ctx->cfg->forbidden_eim_ids[i]) && i < IPA_MAX_FORBIDDEN_IDS; i++) { + if (IPA_ASN_STR_CMP_BUF(&eim_cfg_data_item->eimId, eim_id, strlen(eim_id))) + return -EACCES; + } } IPA_FREE(ctx->eim_id); ctx->eim_id = IPA_STR_FROM_ASN(&eim_cfg_data_item->eimId); if (!ctx->eim_id) { IPA_LOGP(SIPA, LERROR, "unable to allocate memory\n"); - goto error; + return -ENOMEM; } IPA_FREE(ctx->eim_fqdn); @@ -386,13 +389,10 @@ ctx->eim_fqdn = IPA_STR_FROM_ASN(eim_cfg_data_item->eimFqdn); } else { IPA_LOGP(SIPA, LERROR, "unable to allocate memory\n"); - goto error; + return -ENOMEM; } - rc = 0; -error: - ipa_es10b_get_eim_cfg_data_free(eim_cfg_data); - return rc; + return 0; } static int ipa_poll_eim_package(struct ipa_context *ctx) @@ -499,35 +499,49 @@ * \returns positive on success or when polling all eIMs, negative on error (see also enum ipa_poll_rc). */ int ipa_poll(struct ipa_context *ctx) { + struct ipa_es10b_eim_cfg_data *eim_cfg_data = NULL; int rc, index; ctx->poll_running = true; + eim_cfg_data = ipa_es10b_get_eim_cfg_data(ctx); + if (!eim_cfg_data) { + IPA_LOGP(SIPA, LERROR, "cannot read EimConfigurationData from eUICC\n"); + rc = -EIO; + goto error; + } + /* Loop through all eIM, if no preferred eIM ID is specified. */ for (index = 0; ; index++) { IPA_LOGP(SIPA, LINFO, "-----------------------------8<-----------------------------\n"); - rc = eim_init(ctx, index); + rc = eim_init(ctx, eim_cfg_data, index); if (rc < 0) { + if (rc == -EACCES) + continue; if (rc == -ENOENT) { IPA_LOGP(SIPA, LINFO, "all eIMs polled!\n"); + rc = 0; break; } IPA_LOGP(SIPA, LERROR, "eIM initialization failed!\n"); - return rc; + break; } rc = ipa_poll_eim(ctx, index); if (!ctx->poll_running) { IPA_LOGP(SIPA, LINFO, "polling aborted by user!\n"); + rc = 0; break; } if (ctx->cfg->preferred_eim_id) - return rc; + break; } - return 0; +error: + ipa_es10b_get_eim_cfg_data_free(eim_cfg_data); + return rc; } /*! abort IPAd polling (may be called from signal handler). */ diff --git a/src/ipa/main.c b/src/ipa/main.c index 183a584..a937e78 100644 --- a/src/ipa/main.c +++ b/src/ipa/main.c @@ -45,6 +45,7 @@ printf(" -h .......................... print this text.\n"); printf(" -t TAC ...................... set TAC (default: %s)\n", DEFAULT_TAC); printf(" -e eimId .................... set preferred eIM (in case the eUICC has multiple)\n"); + printf(" -f eimId .................... set forbidden eIMs (may call this option multiple times)\n"); printf(" -r N ........................ set reader number (default: %d)\n", DEFAULT_READER_NUMBER); printf(" -c N ........................ set logical channel number (default: %d)\n", DEFAULT_CHANNEL_NUMBER); printf(" -R .......................... Make eUICC send a CAT refresh after switching profile\n"); @@ -152,6 +153,7 @@ char *getopt_nvstate_path = DEFAULT_NVSTATE_PATH; struct ipa_buf *nvstate_load = NULL; struct ipa_buf *nvstate_save = NULL; + int forbidden_eim_index = 0; signal(SIGUSR1, sig_usr1); @@ -165,7 +167,7 @@ /* Overwrite configuration values with user defined parameters */ while (1) { - opt = getopt(argc, argv, "ht:e:r:c:Rn:C:SIEy:a1D:"); + opt = getopt(argc, argv, "ht:e:f:r:c:Rn:C:SIEy:a1D:"); if (opt == -1) break; @@ -180,6 +182,14 @@ case 'e': cfg.preferred_eim_id = optarg; break; + case 'f': + if (forbidden_eim_index < IPA_MAX_FORBIDDEN_IDS) { + cfg.forbidden_eim_ids[forbidden_eim_index++] = optarg; + break; + } + printf("Too many forbidden eIM IDs given!\n"); + opt = -1; + break; case 'r': cfg.reader_num = atoi(optarg); break; -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43705?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: Ic6489207e54cdfff57cd214482ac4a071e154c94 Gerrit-Change-Number: 43705 Gerrit-PatchSet: 3 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-CC: laforge <laforge(a)osmocom.org>
1 0
0 0
[L] Change in libosmo-sigtran[master]: Add Cisco like DSCP configuration support
by fixeria 29 Sep '26

29 Sep '26
Attention is currently required from: jolly. fixeria has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667?usp=email ) Change subject: Add Cisco like DSCP configuration support ...................................................................... Patch Set 7: (8 comments) File src/ss7_asp.h: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/4544eb20_2732b… : PS7, Line 141: struct ss7_qos_class *qos; ```suggestion const struct ss7_qos_class *qos; ``` File src/ss7_asp_vty.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/e18241d4_aebab… : PS7, Line 438: "Specify QoS Class of ASP\n" Why changing this comment? It looks good as-is. File src/ss7_qos_class.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/be75326d_ccada… : PS7, Line 32: pointer to Application Server ```suggestion * \returns pointer to a QoS class instance on success; NULL otherwise */ ``` https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/d5e77163_caddf… : PS7, Line 50: pointer to Application Server ```suggestion * \returns pointer to a QoS class instance on success; NULL otherwise */ ``` https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/f4283a8d_27fbc… : PS7, Line 96: pointer to Application Server ```suggestion * \returns pointer to a QoS class instance on success; NULL otherwise */ ``` File src/ss7_qos_class_vty.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/2ba6e6e4_283b9… : PS7, Line 100: CMD_ATTR_NODE_EXIT Are you sure it's not IMMEDIATE? I don't see any node exit actions here. File src/ss7_xua_srv.h: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/3e8cad63_060fa… : PS7, Line 30: struct ss7_qos_class *qos; ```suggestion const struct ss7_qos_class *qos; ``` File src/ss7_xua_srv_vty.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667/comment/62bc1892_4bce1… : PS7, Line 185: CMD_ATTR_NODE_EXIT Likewise, isn't it IMMEDIATE? -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43667?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: Ic346698fc63771d95e474aec53ffb6c776636b3b Gerrit-Change-Number: 43667 Gerrit-PatchSet: 7 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Tue, 29 Sep 2026 20:22:35 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.