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

  • 1 participants
  • 97203 discussions
[S] Change in osmo-sgsn[master]: gprs_gmm: skip Security Mode on a protected connection
by fixeria 04 Dec '26

04 Dec '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44242?usp=email ) Change subject: gprs_gmm: skip Security Mode on a protected connection ...................................................................... gprs_gmm: skip Security Mode on a protected connection Before the libvlr rework (commit 0b2ad7bdb), the Security Mode Command was only sent if the Iu connection was not integrity protected yet (!ue_ctx->integrity_active). Since then, every Service Request starts vlr_proc_acc_req(), which unconditionally performs the Security Mode procedure. A UE in PMM-CONNECTED may send a Service Request (e.g. of type 'data', to re-establish released RABs) on its existing, already integrity protected, connection. The resulting second Security Mode Command was observed to be rejected by the RAN stack (osmo-hnbgw + umts-hnb), and the Service Request failed. Restore the old behaviour: if the connection is already integrity protected, accept the Service Request right away. The UE is in PMM-CONNECTED, so send the Service Accept explicitly (3GPP TS 24.008, section 4.7.13.3), then let the GMM FSM re-establish the RABs. Change-Id: I7aebe12532045aed847dd93d460f688025af587a Fixes: 0b2ad7bdb ("Rework SGSN code to use new libvlr code") --- M src/sgsn/gprs_gmm.c 1 file changed, 18 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/42/44242/1 diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c index 8e2440a..f73719d 100644 --- a/src/sgsn/gprs_gmm.c +++ b/src/sgsn/gprs_gmm.c @@ -269,7 +269,9 @@ return; } - osmo_fsm_inst_dispatch(ctx->iu.mm_state_fsm, E_PMM_PS_CONN_ESTABLISH, NULL); + /* PMM-IDLE -> PMM-CONNECTED (a Service Request may also be received in PMM-CONNECTED) */ + if (ctx->iu.mm_state_fsm->state == ST_PMM_IDLE) + osmo_fsm_inst_dispatch(ctx->iu.mm_state_fsm, E_PMM_PS_CONN_ESTABLISH, NULL); if (ctx->iu.service.type != GPRS_SERVICE_T_SIGNALLING) sgsn_mm_ctx_iu_activate_rabs(ctx); @@ -1955,6 +1957,21 @@ goto rejected; } + /* If the Service Request was received on an Iu connection, which is already integrity protected (e.g. to + * re-establish RABs in PMM-CONNECTED), there is no need to (and the RNC may refuse to) perform the Security + * Mode procedure again. Accept the Service Request right away. The UE is in PMM-CONNECTED mode, so the + * Service Accept must be sent explicitly, see 3GPP TS 24.008 § 4.7.13.3. */ + if (ctx->iu.ue_ctx->integrity_active && ctx->gmm_fsm->state == ST_GMM_REGISTERED_NORMAL) { + LOGMMCTXP(LOGL_INFO, ctx, "Iu connection is already integrity protected, " + "accepting Service Request without Security Mode procedure\n"); + /* Terminate a pending proc_arq_fsm (if any), it is superseded by this request */ + if (ctx->vsub->proc_arq_fsm) + osmo_fsm_inst_term(ctx->vsub->proc_arq_fsm, OSMO_FSM_TERM_REQUEST, NULL); + gsm48_tx_gmm_service_ack(ctx); + osmo_fsm_inst_dispatch(ctx->gmm_fsm, E_GMM_SERVICE_ACCEPT, NULL); + return 0; + } + vlr_proc_acc_req(ctx->gmm_fsm, E_GMM_SERVICE_ACCEPT, E_GMM_SERVICE_REJECT, -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44242?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I7aebe12532045aed847dd93d460f688025af587a Gerrit-Change-Number: 44242 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-sgsn[master]: gprs_gmm: reset new_key after sending Security Mode Command
by fixeria 04 Dec '26

04 Dec '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44241?usp=email ) Change subject: gprs_gmm: reset new_key after sending Security Mode Command ...................................................................... gprs_gmm: reset new_key after sending Security Mode Command The ctx->iu.new_key flag indicates whether the keys sent in a RANAP Security Mode Command are new (just obtained by AKA) or old. It is set on MM context allocation and on successful authentication, and used to be cleared right after sending the Security Mode Command. The reset got lost in commit 0b2ad7bdb, which moved sending of the Security Mode Command into vlr_set_ciph_mode_cb(). As a result, a Security Mode Command sent on Service Request (no AKA, stored keys) indicates KeyStatus "new". This [mis]leads the RNC to assume START=0, while the UE continues to use its stored START value, so the integrity check fails and the UE silently discards the RRC Security Mode Command. The Service Request times out and PS services are unusable after the first Iu release. Change-Id: I30fdec14f08d26aef7e6fc2ec4f7c887d8ca0866 Fixes: 0b2ad7bdb ("Rework SGSN code to use new libvlr code") --- M src/sgsn/gprs_gmm.c 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/41/44241/1 diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c index 2399516..8e2440a 100644 --- a/src/sgsn/gprs_gmm.c +++ b/src/sgsn/gprs_gmm.c @@ -2547,6 +2547,10 @@ send_ck = sgsn->cfg.uea_encryption_mask > (1 << OSMO_UTRAN_UEA0); sgsn_ranap_iu_tx_sec_mode_cmd(ctx->iu.ue_ctx, &ctx->auth_triplet.vec, send_ck, ctx->iu.new_key); + /* The keys have been taken into use: any subsequent Security Mode + * Command without a new AKA (e.g. on Service Request) must indicate + * KeyStatus "old", so that the RNC keeps the UE's START value. */ + ctx->iu.new_key = 0; return 0; #else -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44241?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I30fdec14f08d26aef7e6fc2ec4f7c887d8ca0866 Gerrit-Change-Number: 44241 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-msc[master]: libvlr: add missing return in _proc_arq_vlr_node2()
by fixeria 04 Dec '26

04 Dec '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/44240?usp=email ) Change subject: libvlr: add missing return in _proc_arq_vlr_node2() ...................................................................... libvlr: add missing return in _proc_arq_vlr_node2() If auth_ciph_sec_ctx_use() fails, proc_arq_fsm_done() is called, but the function continues and attempts to send a Cipher Mode / Security Mode Command and to change the state of the already finished FSM. The LU FSM (vlr_lu_fsm.c) already returns in the same situation. Change-Id: Ieff8adf92eedad3ca1e5e6d5c8fc750676cd0a42 Related: osmo-sgsn.git I73b3e2d7d4a39530f167ce8d2c93c72fe7ceaac2 --- M src/libvlr/vlr_access_req_fsm.c 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/40/44240/1 diff --git a/src/libvlr/vlr_access_req_fsm.c b/src/libvlr/vlr_access_req_fsm.c index f68e5fc..f29fcdd 100644 --- a/src/libvlr/vlr_access_req_fsm.c +++ b/src/libvlr/vlr_access_req_fsm.c @@ -325,6 +325,7 @@ if (!auth_ciph_sec_ctx_use(vsub, par->key_seq)) { LOGPFSML(fi, LOGL_ERROR, "Cannot start ciphering, auth tuple not available, even when it should!\n"); proc_arq_fsm_done(fi, GSM48_REJECT_NETWORK_FAILURE); + return; } if (vlr_set_ciph_mode(vsub->vlr, fi, par->msc_conn_ref, -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44240?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: Ieff8adf92eedad3ca1e5e6d5c8fc750676cd0a42 Gerrit-Change-Number: 44240 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[M] Change in osmo-msc[master]: libvlr: fix memcpy() of PDP QoS profile from InsertSubscriberData
by fixeria 04 Dec '26

04 Dec '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/44239?usp=email ) Change subject: libvlr: fix memcpy() of PDP QoS profile from InsertSubscriberData ...................................................................... libvlr: fix memcpy() of PDP QoS profile from InsertSubscriberData If the HLR sends PDP info without a QoS profile, memcpy() is called with a NULL src pointer and zero length, which is undefined behaviour: vlr.c:1121:3: runtime error: null pointer passed as argument 2, which is declared to never be null Skip memcpy() for an empty QoS profile. Add a unit test sending PDP info without QoS, with a too long QoS and with a valid QoS profile. Change-Id: If4a5e3e7a0bcf2bcb5aba89c4f12468d51f5af8f Related: osmo-sgsn.git If5adc05664fa3dce268105836001bce6d46448b8 --- M src/libvlr/vlr.c M tests/msc_vlr/msc_vlr_test_no_authen.c M tests/msc_vlr/msc_vlr_test_no_authen.err 3 files changed, 58 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/39/44239/1 diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c index 64e235d..26d4252 100644 --- a/src/libvlr/vlr.c +++ b/src/libvlr/vlr.c @@ -1118,7 +1118,8 @@ memcpy(&pdp_data->pdp_address[1], &pdp_info->pdp_address[1], sizeof(pdp_data->pdp_address[1])); osmo_apn_to_str(pdp_data->apn_str, pdp_info->apn_enc, pdp_info->apn_enc_len); - memcpy(pdp_data->qos_subscribed, pdp_info->qos_enc, pdp_info->qos_enc_len); + if (pdp_info->qos_enc_len > 0) + memcpy(pdp_data->qos_subscribed, pdp_info->qos_enc, pdp_info->qos_enc_len); pdp_data->qos_subscribed_len = pdp_info->qos_enc_len; } } diff --git a/tests/msc_vlr/msc_vlr_test_no_authen.c b/tests/msc_vlr/msc_vlr_test_no_authen.c index 3d17a52..8be7fda 100644 --- a/tests/msc_vlr/msc_vlr_test_no_authen.c +++ b/tests/msc_vlr/msc_vlr_test_no_authen.c @@ -1006,6 +1006,38 @@ comment_end(); } +static void test_no_authen_isd_pdp_info(void) +{ + struct vlr_subscr *vsub; + const char *imsi = "901700000004620"; + + comment_start(); + + btw("Create a subscriber in the VLR, no LU is needed to test InsertSubscriberData"); + vsub = vlr_subscr_find_or_create_by_imsi(net->vlr, imsi, __func__, NULL); + OSMO_ASSERT(vsub); + + btw("HLR sends _INSERT_DATA_REQUEST with PDP info: without QoS, with too long QoS, with valid QoS"); + gsup_rx("10010809710000004026f00804036470f1" + /* PDP info: context id 1, APN "internet", no QoS profile */ + "050e" "100101" "120908696e7465726e6574" + /* PDP info: context id 2, APN "internet", QoS profile of 21 octets (too long) */ + "0525" "100102" "120908696e7465726e6574" + "1315" "000102030405060708090a0b0c0d0e0f1011121314" + /* PDP info: context id 3, APN "internet", QoS profile of 3 octets */ + "0513" "100103" "120908696e7465726e6574" "13030e9396" + HLR_TO_VLR, + "12010809710000004026f0" VLR_TO_HLR); + + btw("PDP info with too long QoS profile is ignored, the other two are stored"); + VERBOSE_ASSERT(llist_count(&vsub->ps.pdp_list), == 2, "%d"); + + vlr_subscr_put(vsub, __func__); + EXPECT_CONN_COUNT(0); + clear_vlr(); + comment_end(); +} + msc_vlr_test_func_t msc_vlr_tests[] = { test_no_authen, test_no_authen_tmsi, @@ -1017,5 +1049,6 @@ test_no_authen_imeisv_tmsi_imei, test_no_authen_subscr_expire, test_no_authen_tmsi_nri_no_fit, + test_no_authen_isd_pdp_info, NULL }; diff --git a/tests/msc_vlr/msc_vlr_test_no_authen.err b/tests/msc_vlr/msc_vlr_test_no_authen.err index c0e1216..3dd2ee5 100644 --- a/tests/msc_vlr/msc_vlr_test_no_authen.err +++ b/tests/msc_vlr/msc_vlr_test_no_authen.err @@ -3149,3 +3149,26 @@ llist_count(&msub_list) == 0 ===== test_no_authen_tmsi_nri_no_fit: SUCCESS +===== test_no_authen_isd_pdp_info +- Create a subscriber in the VLR, no LU is needed to test InsertSubscriberData +DVLR VLR subscr unknown + test_no_authen_isd_pdp_info: now used by 1 (test_no_authen_isd_pdp_info) +DVLR set IMSI on subscriber; IMSI=901700000004620 id=901700000004620 +DVLR New subscr, IMSI: 901700000004620 +- HLR sends _INSERT_DATA_REQUEST with PDP info: without QoS, with too long QoS, with valid QoS +<-- GSUP rx OSMO_GSUP_MSGT_INSERT_DATA_REQUEST: 10010809710000004026f00804036470f1050e100101120908696e7465726e65740525100102120908696e7465726e65741315000102030405060708090a0b0c0d0e0f10111213140513100103120908696e7465726e657413030e93960a0101 +DVLR VLR subscr IMSI-901700000004620 + vlr_gsup_rx: now used by 2 (test_no_authen_isd_pdp_info,vlr_gsup_rx) +DVLR IMSI:901700000004620 has MSISDN:46071 +DVLR SUBSCR(IMSI-901700000004620:MSISDN-46071) Will set PDP info, context id = 1, APN = 08 69 6e 74 65 72 6e 65 74 +DVLR SUBSCR(IMSI-901700000004620:MSISDN-46071) QoS info too long (21) +DVLR SUBSCR(IMSI-901700000004620:MSISDN-46071) Will set PDP info, context id = 3, APN = 08 69 6e 74 65 72 6e 65 74 +DMSC msub(unknown) VLR: update for IMSI=901700000004620 (MSISDN=46071) (NO CONN!) +GSUP --> HLR: OSMO_GSUP_MSGT_INSERT_DATA_RESULT: 12010809710000004026f00a0101 +DVLR VLR subscr IMSI-901700000004620:MSISDN-46071 - vlr_gsup_rx: now used by 1 (test_no_authen_isd_pdp_info) +<-- GSUP rx OSMO_GSUP_MSGT_INSERT_DATA_REQUEST: vlr_gsupc_read_cb() returns 0 +- PDP info with too long QoS profile is ignored, the other two are stored + llist_count(&vsub->ps.pdp_list) == 2 +DVLR VLR subscr IMSI-901700000004620:MSISDN-46071 - test_no_authen_isd_pdp_info: now used by 0 (-) +DVLR SUBSCR(IMSI-901700000004620:MSISDN-46071) freeing VLR subscr (max total use count was 2) + llist_count(&msub_list) == 0 +===== test_no_authen_isd_pdp_info: SUCCESS + -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44239?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: If4a5e3e7a0bcf2bcb5aba89c4f12468d51f5af8f Gerrit-Change-Number: 44239 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-sgsn[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by neels 04 Dec '26

04 Dec '26
neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... vlr: fail TMSI allocation if no NRI range fits the NRI bitlen Check the return code of osmo_tmsi_nri_v_limit_by_ranges(). This is a port of osmo-msc.git Change-Id I24b71c8d568477680f735dc4044ec267385156ab. Depends: libosmocore.git Change-Id Ib4571d2a8e83ee94acb75a9d9d695048ee1bf370 Related: OS#7146 Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab --- M src/libvlr/vlr.c 1 file changed, 7 insertions(+), 2 deletions(-) Approvals: neels: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c index a2012d9..ac79ad6 100644 --- a/src/libvlr/vlr.c +++ b/src/libvlr/vlr.c @@ -495,9 +495,14 @@ return rc; } - if (!llist_empty(&vlr->cfg.nri_ranges->entries)) { + /* NRI bitlen 0 means that NRI is not used (3GPP TS 23.236) */ + if (vlr->cfg.nri_bitlen && !llist_empty(&vlr->cfg.nri_ranges->entries)) { int16_t nri_v; - osmo_tmsi_nri_v_limit_by_ranges(&tmsi, vlr->cfg.nri_ranges, vlr->cfg.nri_bitlen); + if (osmo_tmsi_nri_v_limit_by_ranges(&tmsi, vlr->cfg.nri_ranges, vlr->cfg.nri_bitlen)) { + LOGVLR(LOGL_ERROR, "No NRI from range [%s] fits NRI bitlen %u, cannot allocate a TMSI\n", + osmo_nri_ranges_to_str_c(OTC_SELECT, vlr->cfg.nri_ranges), vlr->cfg.nri_bitlen); + return -1; + } osmo_tmsi_nri_v_get(&nri_v, tmsi, vlr->cfg.nri_bitlen); LOGVLR(LOGL_DEBUG, "New NRI from range [%s] = 0x%x --> TMSI 0x%08x\n", osmo_nri_ranges_to_str_c(OTC_SELECT, vlr->cfg.nri_ranges), nri_v, tmsi); -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab Gerrit-Change-Number: 44223 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-sgsn[master]: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen
by neels 04 Dec '26

04 Dec '26
Attention is currently required from: bucketking657. neels has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email ) Change subject: vlr: fail TMSI allocation if no NRI range fits the NRI bitlen ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/44223?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: I0535eedc5a01f8917b0f8bc5af46240f2153d8ab Gerrit-Change-Number: 44223 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Fri, 04 Dec 2026 15:14:16 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: NG_NAS: Rename security_Protected_Nas_Message templates to differenti...
by fixeria 04 Dec '26

04 Dec '26
Attention is currently required from: pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44238?usp=email ) Change subject: NG_NAS: Rename security_Protected_Nas_Message templates to differentiate UL and DL ...................................................................... Patch Set 1: (1 comment) Commit Message: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44238/comment/fbe75c21_9ffb… : PS1, Line 7: to differentiate UL and DL AFAICS, both templates are pretty much identical except `spareHalfOctet` being configurable in one of them and hard-coded in another. Could you explain why this change is needed? -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44238?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: Idaf92f7d462ea27deb552ea7c726120180f57a93 Gerrit-Change-Number: 44238 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Fri, 04 Dec 2026 14:57:09 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[XS] Change in osmo-mgw[master]: mgcp_client: generate mgcp_common.h with printf
by laforge 04 Dec '26

04 Dec '26
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/43576?usp=email ) Change subject: mgcp_client: generate mgcp_common.h with printf ...................................................................... mgcp_client: generate mgcp_common.h with printf The rule in include/osmocom/mgcp_client/Makefile.am that copies <osmocom/mgcp/mgcp_common.h> into the mgcp_client include directory writes its banner with "echo -e". The -e option is a bash extension. Shells whose echo follows the XSI convention expand the backslash escapes on their own and do not take options, so -e is passed through as the first argument to print. The generated header then starts with -e /* and every file that includes it fails to compile: mgcp_common.h:1:2: error: unknown type name 'e' Measured on macOS, where /bin/sh is bash invoked as sh: the escapes are expanded as intended, but the leading "-e " is printed literally. Any shell with an XSI-style echo, dash among them, behaves the same way. The build only works where /bin/sh accepts -e. Replace it with printf and a single format string. printf is POSIX, takes no such option, and produces the same seven lines on every shell. Change-Id: Ibc547513745104212469ccddbc2e636c985cffe5 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M include/osmocom/mgcp_client/Makefile.am 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve diff --git a/include/osmocom/mgcp_client/Makefile.am b/include/osmocom/mgcp_client/Makefile.am index 7415142..7cb9e4f 100644 --- a/include/osmocom/mgcp_client/Makefile.am +++ b/include/osmocom/mgcp_client/Makefile.am @@ -9,7 +9,7 @@ $(NULL) mgcp_common.h: $(top_srcdir)/include/osmocom/mgcp/mgcp_common.h - echo -e "/*\n\n DO NOT EDIT THIS FILE!\n THIS IS OVERWRITTEN DURING BUILD\n This is an automatic copy of <osmocom/mgcp/mgcp_common.h>\n\n */" > mgcp_common.h + printf '/*\n\n DO NOT EDIT THIS FILE!\n THIS IS OVERWRITTEN DURING BUILD\n This is an automatic copy of <osmocom/mgcp/mgcp_common.h>\n\n */\n' > mgcp_common.h cat $(top_srcdir)/include/osmocom/mgcp/mgcp_common.h >> mgcp_common.h version.h: version.h.tpl -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/43576?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: Ibc547513745104212469ccddbc2e636c985cffe5 Gerrit-Change-Number: 43576 Gerrit-PatchSet: 5 Gerrit-Owner: andrei.gosman(a)gmail.com <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-mgw[master]: mgcp_client: generate mgcp_common.h with printf
by laforge 04 Dec '26

04 Dec '26
Attention is currently required from: andrei.gosman(a)gmail.com, pespin. laforge has posted comments on this change by andrei.gosman(a)gmail.com. ( https://gerrit.osmocom.org/c/osmo-mgw/+/43576?usp=email ) Change subject: mgcp_client: generate mgcp_common.h with printf ...................................................................... Patch Set 4: Code-Review+2 (1 comment) File include/osmocom/mgcp_client/Makefile.am: https://gerrit.osmocom.org/c/osmo-mgw/+/43576/comment/2e102282_d0ead3ac?usp… : PS2, Line 12: printf '%s\n' "/*" "" " DO NOT EDIT THIS FILE!" " THIS IS OVERWRITTEN DURING BUILD" " This is an automatic copy of <osmocom/mgcp/mgcp_common.h>" "" " */" > mgcp_common.h > Why not printing everything in one string like before? Done -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/43576?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: Ibc547513745104212469ccddbc2e636c985cffe5 Gerrit-Change-Number: 43576 Gerrit-PatchSet: 4 Gerrit-Owner: andrei.gosman(a)gmail.com <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: andrei.gosman(a)gmail.com <andrei.gosman(a)gmail.com> Gerrit-Comment-Date: Fri, 04 Dec 2026 14:46:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: sgsn: f_rau_pdp_ctx_status(): allow a LU/ISD to happen
by laforge 04 Dec '26

04 Dec '26
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43928?usp=email ) Change subject: sgsn: f_rau_pdp_ctx_status(): allow a LU/ISD to happen ...................................................................... sgsn: f_rau_pdp_ctx_status(): allow a LU/ISD to happen Because the SGSN is (still) doing a LU/ISD for every RAU, even this is technically not needed, allow a LU/ISD happen. Change-Id: I8155438c9601732a10474198cc4b55441a579b76 --- M sgsn/SGSN_Tests.ttcn 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn index 3b79489..f7f1a8b 100644 --- a/sgsn/SGSN_Tests.ttcn +++ b/sgsn/SGSN_Tests.ttcn @@ -2440,6 +2440,7 @@ repeat; } [] as_gmm_auth(ran_index := ran_index, expect_sai := true) { repeat; }; + [] as_gmm_gsup_lu_isd() { repeat; } [] T.timeout { setverdict(fail, "Timeout rx RAU Accept"); mtc.stop; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43928?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: I8155438c9601732a10474198cc4b55441a579b76 Gerrit-Change-Number: 43928 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.