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 libosmocore[master]: gsm_04_08.h: add presentation and screening indicators of calling number
by falconia 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. Hello Jenkins Builder, fixeria, pespin, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email to look at the new patch set (#3). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder The change is no longer submittable: Verified is unsatisfied now. Change subject: gsm_04_08.h: add presentation and screening indicators of calling number ...................................................................... gsm_04_08.h: add presentation and screening indicators of calling number Calling party BCD number IE of 3GPP TS 24.008 section 10.5.4.9 includes not only the usual TON and NPI fields of number metadata, but also optional presentation and screening indicators. Existing struct gsm_mncc_number has fields for these indicators, and the existing encoding and decoding functions handle them correctly - but code point definitions for these fields are missing. Fill that omission. Change-Id: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 --- M include/osmocom/gsm/protocol/gsm_04_08.h 1 file changed, 16 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/94/44194/3 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 Gerrit-Change-Number: 44194 Gerrit-PatchSet: 3 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: library: S1AP_Templates: {tr,ts}_S1AP_RABModifyRsp E_RABModifyListBea...
by pespin 30 Nov '26

30 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44197?usp=email ) Change subject: library: S1AP_Templates: {tr,ts}_S1AP_RABModifyRsp E_RABModifyListBearerModRes field is optional ...................................................................... library: S1AP_Templates: {tr,ts}_S1AP_RABModifyRsp E_RABModifyListBearerModRes field is optional Change-Id: I04d39b265cad10cd4cbcc8cf57f5177ad2043674 --- M library/s1ap/S1AP_Templates.ttcn 1 file changed, 22 insertions(+), 12 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/97/44197/1 diff --git a/library/s1ap/S1AP_Templates.ttcn b/library/s1ap/S1AP_Templates.ttcn index 8151982..84128c0 100644 --- a/library/s1ap/S1AP_Templates.ttcn +++ b/library/s1ap/S1AP_Templates.ttcn @@ -1684,7 +1684,7 @@ private function f_ts_S1AP_RABModifyRsp(template (value) MME_UE_S1AP_ID mme_id, template (value) ENB_UE_S1AP_ID enb_id, - template (value) E_RABModifyListBearerModRes rab_modified_items, + template (omit) E_RABModifyListBearerModRes rab_modified_items := omit, template (omit) E_RABList rab_failed_items := omit) return template (value) E_RABModifyResponse { @@ -1698,15 +1698,20 @@ id := S1AP_Constants.id_eNB_UE_S1AP_ID, criticality := ignore, value_ := { ENB_UE_S1AP_ID := enb_id } - }, { - id := S1AP_Constants.id_E_RABModifyListBearerModRes, - criticality := ignore, - value_ := { E_RABModifyListBearerModRes := rab_modified_items } } } }; var integer idx := lengthof(rsp.protocolIEs); + if (isvalue(rab_modified_items)) { + rsp.protocolIEs[idx] := { + id := S1AP_Constants.id_E_RABModifyListBearerModRes, + criticality := ignore, + value_ := { E_RABModifyListBearerModRes := rab_modified_items } + }; + idx := idx + 1; + } + if (isvalue(rab_failed_items)) { rsp.protocolIEs[idx] := { id := S1AP_Constants.id_E_RABFailedToModifyList, @@ -1721,7 +1726,7 @@ private function f_tr_S1AP_RABModifyRsp(template (present) MME_UE_S1AP_ID mme_id, template (present) ENB_UE_S1AP_ID enb_id, - template (present) E_RABModifyListBearerModRes rab_modified_items, + template E_RABModifyListBearerModRes rab_modified_items := *, template E_RABList rab_failed_items := *) return template E_RABModifyResponse { @@ -1735,15 +1740,20 @@ id := S1AP_Constants.id_eNB_UE_S1AP_ID, criticality := ignore, value_ := { ENB_UE_S1AP_ID := enb_id } - }, { - id := S1AP_Constants.id_E_RABModifyListBearerModRes, - criticality := ignore, - value_ := { E_RABModifyListBearerModRes := rab_modified_items } } } }; var integer idx := lengthof(rsp.protocolIEs); + if (isvalue(rab_modified_items)) { + rsp.protocolIEs[idx] := { + id := S1AP_Constants.id_E_RABModifyListBearerModRes, + criticality := ignore, + value_ := { E_RABModifyListBearerModRes := rab_modified_items } + }; + idx := idx + 1; + } + if (ispresent(rab_failed_items)) { rsp.protocolIEs[idx] := { id := S1AP_Constants.id_E_RABFailedToModifyList, @@ -1761,7 +1771,7 @@ template (value) S1AP_PDU ts_S1AP_RABModifyRsp(template (value) MME_UE_S1AP_ID mme_id, template (value) ENB_UE_S1AP_ID enb_id, - template (value) E_RABModifyListBearerModRes rab_modified_items, + template (omit) E_RABModifyListBearerModRes rab_modified_items := omit, template (omit) E_RABList rab_failed_items := omit) := { successfulOutcome := { procedureCode := S1AP_Constants.id_E_RABModify, @@ -1776,7 +1786,7 @@ template (present) S1AP_PDU tr_S1AP_RABModifyRsp(template (present) MME_UE_S1AP_ID mme_id := ?, template (present) ENB_UE_S1AP_ID enb_id := ?, - template (present) E_RABModifyListBearerModRes rab_modified_items := ?, + template E_RABModifyListBearerModRes rab_modified_items := *, template E_RABList rab_failed_items := *) := { successfulOutcome := { procedureCode := S1AP_Constants.id_E_RABModify, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44197?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: I04d39b265cad10cd4cbcc8cf57f5177ad2043674 Gerrit-Change-Number: 44197 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: mme: Introduce tests TC_incoming_update_bearer_*
by pespin 30 Nov '26

30 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?usp=email ) Change subject: mme: Introduce tests TC_incoming_update_bearer_* ...................................................................... mme: Introduce tests TC_incoming_update_bearer_* Related: SYS#8357 Change-Id: Ib0c0996ed1cbf9b2182e3b232b733af5b9c441ce --- M library/GTPv2_Templates.ttcn M library/NAS_EPS_Templates.ttcn M mme/ConnHdlr.ttcn M mme/MME_Tests.ttcn M mme/expected-results.xml 5 files changed, 357 insertions(+), 20 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/98/44198/1 diff --git a/library/GTPv2_Templates.ttcn b/library/GTPv2_Templates.ttcn index 1664f9a..7a5dee4 100644 --- a/library/GTPv2_Templates.ttcn +++ b/library/GTPv2_Templates.ttcn @@ -177,6 +177,7 @@ /* ... */ Context_Not_Found (64), System_Failure (72), + No_resources_available (73), APN_access_denied__no_subscription (93) } with { variant "FIELDLENGTH(8)" encode "RAW" }; @@ -462,6 +463,88 @@ additionalOctets := * } +/* 8.18 */ +template (value) ServingNetwork +ts_GTP2C_ServingNetwork(template (value) hexstring mcc, + template (value) hexstring mnc, + template (value) BIT4 instance := '0000'B) := +{ + elementIdentifier := '53'O, + lengthIndicator := 0, /* overwritten */ + instance := instance, + spare := '0000'B, + mccDigit1 := mcc[0], + mccDigit2 := mcc[1], + mccDigit3 := mcc[2], + mncDigit3 := mnc[2], /* 'F'H for 2 digit MNC */ + mncDigit1 := mnc[0], + mncDigit2 := mnc[1], + additionalOctets := omit +} + +/* 8.19 24.008 */ +template (value) TrafficFlowTemplateV_CreateAddReplaceTFT +ts_GTP2C_TrafficFlowTemplateV_CreateAddReplaceTFT( + template (value) integer numberOfPacketFilters, + template (value) BIT1 eBIT, + template (value) BIT3 operationCodeTFT, + template (value) PacketFilterList_CreateAddReplaceTFT packetFilterList_CreateAddReplaceTFT, + template (omit) ParametersList parametersList := omit) := +{ + numberOfPacketFilters := numberOfPacketFilters, + eBIT := eBIT, + operationCodeTFT := operationCodeTFT, + packetFilterList_CreateAddReplaceTFT := packetFilterList_CreateAddReplaceTFT, + parametersList := parametersList +} + +template (value) TrafficFlowTemplateV +ts_GTP2C_TrafficFlowTemplateV_U_CreateAddReplaceTFT( + template (value) integer numberOfPacketFilters, + template (value) BIT1 eBIT := '0'B, + template (value) BIT3 operationCodeTFT := '011'B, /* Add packet filters to existing TFT */ + template (value) PacketFilterList_CreateAddReplaceTFT packetFilterList_CreateAddReplaceTFT, + template (omit) ParametersList parametersList := omit) := +{ + trafficFlowTemplateV_CreateAddReplaceTFT := + ts_GTP2C_TrafficFlowTemplateV_CreateAddReplaceTFT(numberOfPacketFilters, + eBIT, + operationCodeTFT, + packetFilterList_CreateAddReplaceTFT, + parametersList) +} + +template (value) PacketFilter +ts_GTP2C_PacketFilter(template (value) PacketFilterIdentifier identifier, + template (value) OCT1 evaluationPrecedence, + template (value) octetstring contents) := +{ + identifier := identifier, + evaluationPrecedence := evaluationPrecedence, + lengthIndicator := 0, /* overwritten */ + contents := contents +} + +template (value) PacketFilterIdentifier +ts_PacketFilterIdentifier(template (value) BIT4 identifier, + template (value) BIT2 direction) := { + identifier := identifier, + direction := direction, + spare := '00'B +}; + +/* 8.19 */ +template (value) EPS_BearerLevel_TFT +ts_GTPC2_EPS_BearerLevel_TFT(template (value) TrafficFlowTemplateV trafficFlowTemplateValue, + template (value) BIT4 instance := '0000'B) := +{ + elementIdentifier := '54'O, + lengthIndicator := 0, /* overwritten */ + instance := instance, + spare := '0000'B, + trafficFlowTemplateValue := trafficFlowTemplateValue +} + /* 8.21 */ function ts_GTP2C_UserLocInfo(template (omit) CGI cgi := omit, template (omit) SAI sai := omit, @@ -627,12 +710,13 @@ /* 8.28 */ template (value) BearerContextIEs ts_GTP2C_BcContextIE(template (value) uint4_t ebi, + template (omit) EPS_BearerLevel_TFT ePS_Bearer_TFT := omit, template (omit) FullyQualifiedTEID_List teid_list := omit, template (omit) Bearer_QoS qos := ts_GTP2C_BearerQos('09'O, 0,0,0,0), template (omit) ChargingID charging_id := omit) := { ePS_Bearer_ID := ts_GTP2C_EpsBearerId(ebi), cause := ts_GTP2C_Cause(Request_accepted, '0'B), - ePS_Bearer_TFT := omit, + ePS_Bearer_TFT := ePS_Bearer_TFT, fullyQualifiedTEID := teid_list, bearerLevel_QoS := qos, chargingID := charging_id, @@ -1453,25 +1537,81 @@ privateExtension := omit }}); -/* 8.18 */ -template (value) ServingNetwork -ts_GTP2C_ServingNetwork(template (value) hexstring mcc, - template (value) hexstring mnc, - template (value) BIT4 instance := '0000'B) := -{ - elementIdentifier := '53'O, - lengthIndicator := 0, /* overwritten */ - instance := instance, - spare := '0000'B, - mccDigit1 := mcc[0], - mccDigit2 := mcc[1], - mccDigit3 := mcc[2], - mncDigit3 := mnc[2], /* 'F'H for 2 digit MNC */ - mncDigit1 := mnc[0], - mncDigit2 := mnc[1], - additionalOctets := omit -} +/* 7.2.15 Update Bearer Request */ +template (value) PDU_GTPCv2 +ts_GTP2C_UpdateBearerRequest(template (value) OCT4 d_teid, + template (value) OCT3 seq, + template (value) BearerContextGrouped_List bearerContextGrouped, + template (value) AggregateMaximumBitRate apn_ambr, + template (omit) ProcedureTransactionID procedureTransactionID := omit, + template (omit) ProtocolConfigOptions protocolConfigOptions := omit, + template (omit) ChangeReportingAction changeReportingAction := omit, + template (omit) CSG_InformationReportingAction cSG_InformationReportingAction := omit, + template (omit) Indication indicationFlags := omit, + template (omit) HeNBInformationReporting heNBInformationReporting := omit, + template (omit) FullyQualifiedPDN_ConnectionSetID_List csid := omit, + template (omit) PresenceReportingAreaAction presenceReportingAreaAction := omit, + template (omit) LoadControlInformationGrouped_List loadControlInformationGrouped := omit, + template (omit) OverloadControlInformationGrouped_List overloadControlInformationGrouped := omit, + template (omit) FullyQualifiedContainer nBIFOMContainer := omit) := +ts_PDU_GTP2C(d_teid, seq, '61'O, { + updateBearerRequest := { + bearerContextGrouped := bearerContextGrouped, + procedureTransactionID := procedureTransactionID, + protocolConfigOptions := protocolConfigOptions, + apn_ambr := apn_ambr, + changeReportingAction := changeReportingAction, + cSG_InformationReportingAction := cSG_InformationReportingAction, + indicationFlags := indicationFlags, + heNBInformationReporting := heNBInformationReporting, + csid := csid, + presenceReportingAreaAction := presenceReportingAreaAction, + loadControlInformationGrouped := loadControlInformationGrouped, + overloadControlInformationGrouped := overloadControlInformationGrouped, + nBIFOMContainer := nBIFOMContainer, + privateExtension := omit + }}); +/* 7.2.16 Update Bearer Response */ +template (present) PDU_GTPCv2 +tr_GTP2C_UpdateBearerResp(template (present) OCT4 d_teid, + template (present) OCT3 seq := ?, + template (present) GTP2C_Cause cause := ?, + template BearerContextGrouped_List bearerContextGrouped := *, + template ProtocolConfigOptions protocolConfigOptions := *, + template Recovery recovery := *, + template FullyQualifiedPDN_ConnectionSetID_List csid := *, + template Indication indicationFlags := *, + template UE_TimeZone uE_TimeZone := *, + template UserLocationInfo uLI := *, + template TrustedWLANAccessNetworkIdentifier trustedWLANAccessNetworkIdentifier := *, + template OverloadControlInformationGrouped_List overloadControlInformationGrouped := *, + template PresenceReportingAreaInformation presenceReportingAreaInformation := *, + template IP_Address_List iP_Addr := *, + template TWANIdentifierTimestamp tWANIdentifierTimestamp := *, + template PortNumber_List portNumber := *, + template FullyQualifiedContainer nBIFOMContainer := *, + template ExtendedProtocolConfigOptions extendedProtocolConfigOptions := *) := +tr_PDU_GTP2C(d_teid, seq, { + updateBearerResponse := { + cause := tr_GTP2C_Cause(cause), + bearerContextGrouped := bearerContextGrouped, + protocolConfigOptions := protocolConfigOptions, + recovery := recovery, + csid := csid, + indicationFlags := indicationFlags, + uE_TimeZone := uE_TimeZone, + uLI := uLI, + trustedWLANAccessNetworkIdentifier := trustedWLANAccessNetworkIdentifier, + overloadControlInformationGrouped := overloadControlInformationGrouped, + presenceReportingAreaInformation := presenceReportingAreaInformation, + iP_Addr := iP_Addr, + tWANIdentifierTimestamp := tWANIdentifierTimestamp, + portNumber := portNumber, + nBIFOMContainer := nBIFOMContainer, + extendedProtocolConfigOptions := extendedProtocolConfigOptions, + privateExtension := * + }}); } diff --git a/library/NAS_EPS_Templates.ttcn b/library/NAS_EPS_Templates.ttcn index 20b2913..8ddd11a 100644 --- a/library/NAS_EPS_Templates.ttcn +++ b/library/NAS_EPS_Templates.ttcn @@ -1432,4 +1432,67 @@ } } +/* 8.3.18 Modify EPS bearer context request */ +template (present) PDU_NAS_EPS +tr_NAS_ModifyEpsBearCtxReq(template (present) BIT4 bearer_id := ?, + template (present) BIT8 proc_tid := ?, + template EPS_QualityOfServiceTLV newEPS_QoS := *, + template TrafficFlowTemplateTLV trafficFlowTemplate := *, + template QoSTLV new_QoS := *, + template LLC_SAPITV negotiated_LLC_SAPI := *, + template RadioPriorityTV radioPriority := *, + template PacketFlowIDTLV packetFlowID := *, + template APN_AggregateMaximumBitRateTLV aPN_AMBR := *, + template ProtocolConfigOptionsTLV protocolConfigOptions := *, + template WLANOffloadAcceptabilityTV wLANOffloadIndication := *, + template NBIFOM_ContainerTLV nBIFOMContainer := *, + template HeaderCompressinConfigurationTLV headerCompressinConfiguration := *, + template ExtendedProtocolConfigurationOptionsTLVE extendedProtocolConfigurationOptions := *, + template Extended_APN_AMBR_TLV extended_APN_AMBR := *, + template ExtendedEPSQoSTLV extendedQoS := *) := { + protocolDiscriminator := c_EPS_NAS_PD_ESM, + ePS_messages := { + ePS_SessionManagement := { + pDU_NAS_EPS_ModifyEPSBearerContextRequest := { + ePSBearerIdentity := bearer_id, + procedureTransactionIdentifier := proc_tid, + messageType := '11001001'B, + newEPS_QoS := newEPS_QoS, + trafficFlowTemplate := trafficFlowTemplate, + new_QoS := new_QoS, + negotiated_LLC_SAPI := negotiated_LLC_SAPI, + radioPriority := radioPriority, + packetFlowID := packetFlowID, + aPN_AMBR := aPN_AMBR, + protocolConfigOptions := protocolConfigOptions, + wLANOffloadIndication := wLANOffloadIndication, + nBIFOMContainer := nBIFOMContainer, + headerCompressinConfiguration := headerCompressinConfiguration, + extendedProtocolConfigurationOptions := extendedProtocolConfigurationOptions, + extended_APN_AMBR := extended_APN_AMBR, + extendedQoS := extendedQoS + } + } + } +} + +/* 8.3.16 Modify EPS bearer context accept */ +template (value) PDU_NAS_EPS +ts_NAS_ActDefEpsBearCtxAcc(template (value) BIT4 bearer_id, + template (value) BIT8 proc_tid) := { + protocolDiscriminator := c_EPS_NAS_PD_ESM, + ePS_messages := { + ePS_SessionManagement := { + pDU_NAS_EPS_ModifyEPSBearerContextAccept := { + ePSBearerIdentity := bearer_id, + procedureTransactionIdentifier := proc_tid, + messageType := '11001010'B, + protocolConfigOptions := omit, + nBIFOMContainer := omit, + extendedProtocolConfigurationOptions := omit + } + } + } +} + } diff --git a/mme/ConnHdlr.ttcn b/mme/ConnHdlr.ttcn index e3e62f8..1a76f90 100644 --- a/mme/ConnHdlr.ttcn +++ b/mme/ConnHdlr.ttcn @@ -374,6 +374,52 @@ } } +altstep as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(boolean reply_success := true) runs on ConnHdlr { + var S1AP_PDU rx_msg; + var PDU_NAS_EPS rx_nas; + [] S1AP.receive((tr_S1AP_RABModifyReq(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + max_br := omit), + tr_S1AP_RABModifyReq(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + max_br := ?))) -> value rx_msg { + var template (value) PDU_NAS_EPS nas; + var template (value) E_RAB_ID rab_id := 5; + + S1AP.receive(tr_NAS_ModifyEpsBearCtxReq()) -> value rx_nas; + + if (reply_success) { + var template (value) S1AP_PDU tx; + var template (value) PDU_NAS_EPS nas_esm; + var template (omit) E_RABModifyListBearerModRes rab_modified_items; + + rab_modified_items := + ts_E_RABModifyListBearerModRes(ts_E_RABModifyItemBearerModRes(rab_id := rab_id)) + S1AP.send(ts_S1AP_RABModifyRsp(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + rab_modified_items := rab_modified_items, + rab_failed_items := omit)); + + nas_esm := ts_NAS_ActDefEpsBearCtxAcc(bearer_id := int2bit(g_pars.ue_pars.bearer.ebi, 4), + proc_tid := int2bit(1,8)); + S1AP.send(nas_esm); + } else { + var template (omit) E_RABList rab_failed_items; + + rab_failed_items := + ts_E_RABList(ts_E_RABItem(rab_id := rab_id, + cause := {radioNetwork := reduce_load_in_serving_cell})); + S1AP.send(ts_S1AP_RABModifyRsp(g_pars.ue_pars.mme_ue_id, + g_pars.ue_pars.enb_ue_id, + rab_modified_items := omit, + rab_failed_items := rab_failed_items)); + } + } + [] S1AP.receive(PDU_NAS_EPS:?) -> value rx_nas { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Rx Unexpected NAS PDU msg: ", rx_nas)); + } +} + altstep as_s1ap_handle_IntialCtxSetupReq_TAU_Accept() runs on ConnHdlr { var S1AP_PDU rx_msg; var PDU_NAS_EPS rx_nas; @@ -678,6 +724,51 @@ } } +function f_GTP2C_tx_UpdateBearerRequest() +runs on ConnHdlr { + var uint16_t gtpc_seq_nr := f_rnd_int(65535); + var template (value) GTPv2_Types.TrafficFlowTemplateV flow; + var template (value) BearerContextGrouped bctx; + var template (value) PDU_GTPCv2 upd_req; + + flow := ts_GTP2C_TrafficFlowTemplateV_U_CreateAddReplaceTFT(numberOfPacketFilters := 1, + operationCodeTFT := '011'B, /* Add packet filters to existing TFT */ + packetFilterList_CreateAddReplaceTFT := { + ts_GTP2C_PacketFilter(identifier := ts_PacketFilterIdentifier(identifier := '0100'B, + direction := '01'B), + evaluationPrecedence := '1C'O, + contents := '3011100a13eb85ffffffff11ac170642ffffffff50a00c40c370'O) + }) + bctx := ts_GTP2C_BcGrouped(ts_GTP2C_BcContextIE(ebi := g_pars.ue_pars.bearer.ebi, + ePS_Bearer_TFT := ts_GTPC2_EPS_BearerLevel_TFT(trafficFlowTemplateValue := flow), + qos := ts_GTP2C_BearerQos(qci := '01'O, + max_br_ul := 44, + max_br_dl := 31, + g_br_ul := 44, + g_br_dl := 31, + prio_lvl := '0010'B, + pe_vuln := '0'B, + pe_capa := '0'B))); + upd_req := ts_GTP2C_UpdateBearerRequest(d_teid := g_pars.ue_pars.s11_teic_remote, + seq := int2oct(gtpc_seq_nr, 3), + bearerContextGrouped := { bctx }, + apn_ambr := ts_GTP2C_Ambr(102400, 102400)); + GTP2.send(upd_req); +} + +altstep as_GTP2C_UpdateBearerResp(template (present) GTP2C_Cause cause := Request_accepted) runs on ConnHdlr { + var PDU_GTPCv2 rx_msg; + + [] GTP2.receive(tr_GTP2C_UpdateBearerResp(g_pars.ue_pars.s11_teic_local, + cause := cause)) -> value rx_msg { + setverdict(pass); + } + [] GTP2.receive { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + log2str("Unexpected GTPv2/S11 message from MME")); + } +} + /* 3GPP TS 23.401 D.3.5, TS 23.003 2.8.2.1 */ private function guti2rai_ptmsi(in NAS_EPS_Types.GUTI guti, in OCT2 truncated_nas_token, out RoutingAreaIdentity rai, out OCT4 ptmsi, out OCT3 ptmsi_sig) runs on ConnHdlr { diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn index 586c667..e717766 100644 --- a/mme/MME_Tests.ttcn +++ b/mme/MME_Tests.ttcn @@ -816,6 +816,45 @@ vc_conn.done; } +/* SWGC forwards PGW-originated GTPv2C Update Bearer Request to MME, + * which should update the eRAB + NAS towards the eNB+UE. + * Success scenario. */ +private function f_TC_incoming_update_bearer_success() runs on ConnHdlr { + f_attach(); + f_GTP2C_tx_UpdateBearerRequest(); + as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(reply_success := true); + as_GTP2C_UpdateBearerResp(cause := Request_accepted); +} +testcase TC_incoming_update_bearer_success() runs on MTC_CT { + f_init(9, init_diameter := true, init_gtpv2c_s11 := true); + f_s1ap_setup(0); + + var ConnHdlrPars pars := f_init_pars(ue_idx := 0); + var ConnHdlr vc_conn; + vc_conn := f_start_handler_with_pars(refers(f_TC_incoming_update_bearer_success), pars); + vc_conn.done; +} + +/* SWGC forwards PGW-originated GTPv2C Update Bearer Request to MME, + * which should update the eRAB + NAS towards the eNB+UE. + * eNB fails to update the eRAB scenario. */ +private function f_TC_incoming_update_bearer_enb_failure() runs on ConnHdlr { + f_attach(); + f_GTP2C_tx_UpdateBearerRequest(); + as_s1ap_handle_ERABModifyRequest_ModifyBearerCtxReq(reply_success := false); + as_GTP2C_UpdateBearerResp(cause := No_resources_available); +} +testcase TC_incoming_update_bearer_enb_failure() runs on MTC_CT { + f_init(11, init_diameter := true, init_gtpv2c_s11 := true); + f_s1ap_setup(0); + + var ConnHdlrPars pars := f_init_pars(ue_idx := 0); + var ConnHdlr vc_conn; + vc_conn := f_start_handler_with_pars(refers(f_TC_incoming_update_bearer_enb_failure), pars); + vc_conn.done; +} + + control { execute( TC_s1ap_setup_unknown_global_enb_id_plmn() ); execute( TC_s1ap_setup_wrong_tac() ); @@ -829,6 +868,8 @@ execute( TC_ue_cell_reselect_eutran_to_geran() ); execute( TC_ue_cell_reselect_geran_to_eutran() ); execute( TC_s1ap_attach_no_emergency() ); + execute( TC_incoming_update_bearer_success() ); + execute( TC_incoming_update_bearer_enb_failure() ); } diff --git a/mme/expected-results.xml b/mme/expected-results.xml index ae2dd4e..95b2d55 100644 --- a/mme/expected-results.xml +++ b/mme/expected-results.xml @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<testsuite name='Titan' tests='17' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> +<testsuite name='Titan' tests='23' failures='0' errors='0' skipped='0' inconc='0' time='MASKED'> <testcase classname='MME_Tests' name='TC_s1ap_setup_unknown_global_enb_id_plmn' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_setup_wrong_tac' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_setup' time='MASKED'/> @@ -12,6 +12,8 @@ <testcase classname='MME_Tests' name='TC_ue_cell_reselect_eutran_to_geran' time='MASKED'/> <testcase classname='MME_Tests' name='TC_ue_cell_reselect_geran_to_eutran' time='MASKED'/> <testcase classname='MME_Tests' name='TC_s1ap_attach_no_emergency' time='MASKED'/> + <testcase classname='MME_Tests' name='TC_incoming_update_bearer_success' time='MASKED'/> + <testcase classname='MME_Tests' name='TC_incoming_update_bearer_enb_failure' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_vlr_reset' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_paging_sms' time='MASKED'/> <testcase classname='MME_Tests_SGsAP' name='TC_sgsap_paging_cs' time='MASKED'/> -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44198?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: Ib0c0996ed1cbf9b2182e3b232b733af5b9c441ce Gerrit-Change-Number: 44198 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: library/S1AP_Functions: Support routing rx E-RABModifyResponse to cor...
by pespin 30 Nov '26

30 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?usp=email ) Change subject: library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr ...................................................................... library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr Match has to be done independently both with max_br and without max_br optional IE explicitly, since the logic introduced time ago in f_tr_S1AP_RABModifyReq() broke with newer titan releases which are conforming better to TTCN-3 specs. As a result, the "*" inserted in the array is converted by titan to a "?" [1]. [1] https://gitlab.eclipse.org/eclipse/titan/titan.core/-/work_items/798 Related: SYS#8357 Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58 --- M library/S1AP_Functions.ttcn 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/44196/1 diff --git a/library/S1AP_Functions.ttcn b/library/S1AP_Functions.ttcn index d9af50e..ef83d72 100644 --- a/library/S1AP_Functions.ttcn +++ b/library/S1AP_Functions.ttcn @@ -52,6 +52,9 @@ case (tr_S1AP_RABSetupReq) { return im.value_.E_RABSetupRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID; } + case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) { + return im.value_.E_RABModifyRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID; + } /* TODO */ } } else if (ischosen(s1ap.successfulOutcome)) { @@ -110,6 +113,9 @@ case (tr_S1AP_RABSetupReq) { return im.value_.E_RABSetupRequest.protocolIEs[0].value_.MME_UE_S1AP_ID; } + case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) { + return im.value_.E_RABModifyRequest.protocolIEs[0].value_.MME_UE_S1AP_ID; + } /* TODO */ } } else if (ischosen(s1ap.successfulOutcome)) { @@ -184,6 +190,19 @@ } return omit; } + case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) { + var E_RABModifyRequest msg := im.value_.E_RABModifyRequest; + for (i := 0; i < lengthof(msg.protocolIEs); i := i+1) { + if (msg.protocolIEs[i].id == id_E_RABToBeModifiedListBearerModReq) { + var E_RABToBeModifiedListBearerModReq rab_req := msg.protocolIEs[i].value_.E_RABToBeModifiedListBearerModReq; + for (j := 0; j < lengthof(rab_req); j := j+1) { + var E_RABToBeModifiedItemBearerModReq it := rab_req[j].value_.E_RABToBeModifiedItemBearerModReq; + return it.nAS_PDU; + } + } + } + return omit; + } } } return omit; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44196?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: Ic14c0990fcb885d39a107719fb9f520c88594c58 Gerrit-Change-Number: 44196 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in libosmocore[master]: gsm BC-IE: add functions for specific rules in each direction
by falconia 30 Nov '26

30 Nov '26
Attention is currently required from: pespin. falconia 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 2: (1 comment) Patchset: PS2: > Can't this be done internally at the encode stage? The rules applied by rule-setter functions are totally different between MS vs network, while encoding is exactly the same, except for one very minor quirk with octets 6d and 6e. Thus having rule application separate from encoding is architecturally cleaner. Also particularly on the MS side, it can be useful in some debug/research scenarios to send intentionally spec-invalid BC-IE: coded per the spec so the other end will decode it, but violating some of the rules to see what happens. Present OsmocomBB mobile app allows doing just that using the old struct gsm_mncc_bearer_cap and related functions, and I would like to retain the same ability in the new API. Per the specs every MS must support FRv1 at the minimum, and there is no valid coding that says "I don't support FRv1". My new `osmo_gsm48_bcap_apply_ms_rules()` function would reject a request to send speech version list without FRv1, as there is no valid coding for RCR bits then. But a debug/research MS should allow bypassing this step, sending spec-invalid codec list that excludes FRv1, and manually setting RCR to whatever code the researcher wishes to test. A few years ago @vyanitskiy@sysmocom.de did exactly this with OsmocomBB on Russian commercial operators, sending different speech version lists to see what the network does. By doing so he discovered that one commercial network would actually assign TCH/HS with HRv1 codec (!) iff you send a spec-invalid speech version list that says HRv1 support but no others, and no FRv1 - but there is no possibility of provoking the same behavior from the network (getting an HRv1 channel) with any spec-valid BC-IE. -- 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: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Mon, 30 Nov 2026 16:25:52 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-msc[master]: sdp_msg: fix stack buffer overflow in sdp_parse_connection_info()
by pespin 30 Nov '26

30 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-msc/+/44195?usp=email ) Change subject: sdp_msg: fix stack buffer overflow in sdp_parse_connection_info() ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44195?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-Change-Id: I4e0b8b75928f616f1bf1d71140298d9b7611da96 Gerrit-Change-Number: 44195 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 30 Nov 2026 16:13:33 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by falconia 30 Nov '26

30 Nov '26
Attention is currently required from: fixeria, pespin. falconia 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 2: (13 comments) Patchset: PS2: > Agreeing with Pau here. In this case, where should the low-level struct definitions go? Also inside `gsm48_ie.c`? PS2: > Thanks for your contribution! The code looks good in general, but I found a few potential issues. […] Note in TODO-RELEASE: what should it say? Unit tests: I agree they are necessary, but I don't have enough spare cycles at the present moment. Would it be acceptable to merge the patches once the remaining issues are resolved, with a plan to add unit tests later? If we get the patches merged, I'll start using the new structs and functions right away in hera-msc-be (see https://gitea.osmocom.org/themwi/hera-msc-be) as opposed to having to maintain a local parallel version, resulting in real usage and thus real testing. Then maybe I'll make some time for unit tests after my osmo-msc patches for MNCC raw mode are lifted out of WIP, reviewed and merged. Commit Message: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/00e07e2d_cd120572?… : PS2, Line 7: gsm: new struct and en/decoding functions for BC-IE > Oh, good to see someone is working on this! […] I assigned the ticket to myself. File include/osmocom/gsm/gsm48_ie.h: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/e975cc4d_130b78ec?… : PS2, Line 25: #define OSMO_BCAP_MAX_SPEECH_VER 9 > It probably makes sense to leave some extra unsued just in case more are ever added? We are about to head into 2027, and the specs for GSM have been frozen for what, two decades now? But if you would like me to add more octets here (yes, I understand that it is an ABI-affected struct), please tell me how many. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/1c026d65_65e3f2d4?… : PS2, Line 141: int osmo_gsm48_decode_bcap_ll(struct osmo_bcap_ll *lld, uint8_t ie_len, > We usually put the buffer then the length when they are separate params. OK, I will flip them in the next iteration of this patch. I did it this way because I was trying to stay close to the old function that takes a pointer to LV, where L comes before V. File src/gsm/gsm48_ie.c: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/ed07e810_5ac39c39?… : PS2, Line 341: if (cp >= endp) : return -EINVAL; > Shouldn't we check the coding bit (number 7) here? […] Thanks for the catch! I will definitely fix it. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/35c4dc03_17be186f?… : PS2, Line 443: hld->v120_params = lld->octet_5_ext[1]; > You should mask the extension bit here: […] Acknowledged https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/6961a01d_e91e40fb?… : PS2, Line 630: for (n = 0; n < lld->speech.num_vers; n++) { > Maybe add an `assert()` before the loop to make sure that `lld->speech. […] Acknowledged https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/22bce14b_3e5eb2ff?… : PS2, Line 647: for (n = 0; n < lld->data.extent_of_5; n++) > Likewise here (see my comment above): it may be a good idea to check if `lld->data. […] Acknowledged https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/6875f126_1d5ef688?… : PS2, Line 650: for (n = 0; n < lld->data.extent_of_6; n++) > Likewise here (see my comment above): it may be a good idea to check if `lld->data. […] Acknowledged https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/fc139f5d_7bbe6d9b?… : PS2, Line 658: if (lv_only) > It's worth checking `msgb_tailroom()` here first, since the `msg` comes from a caller and is not gua […] Acknowledged https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/d60c8700_a6218909?… : PS2, Line 665: bcap_enc_trim_6d_6f > AFAICS, this function also handles octet 6g, so maybe rename to `bcap_enc_trim_6d_6g()` or `bcap_enc […] Good catch: 6d through 6g was my intent. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/c5fd3e76_3d86dc97?… : PS2, Line 715: if (hld->other_ra == GSM48_BCAP_OTHER_RA_V120) { > `GSM48_BCAP_OTHER_RA_V120` is defined as 0, so `hld->other_ra` indicates V. […] Good catch once again - I must have been too sleepy when I wrote this code. -- 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: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Mon, 30 Nov 2026 16:08:52 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de> Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-msc[master]: sdp_msg: fix stack buffer overflow in sdp_parse_connection_info()
by fixeria 30 Nov '26

30 Nov '26
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/44195?usp=email ) Change subject: sdp_msg: fix stack buffer overflow in sdp_parse_connection_info() ...................................................................... sdp_msg: fix stack buffer overflow in sdp_parse_connection_info() sdp_parse_connection_info() parses the SDP 'c=' line using sscanf() with two unbounded %s conversions into char ipv[10] and char addr_str[INET6_ADDRSTRLEN]. An over-long token in the 'c=' line, e.g. received in the 'sdp' field of an MNCC_SETUP_REQ via the external MNCC interface, overflows these buffers on the stack, overwriting the return address and crashing osmo-msc. Bound both conversions with field widths matching the buffer sizes. Reported by Calif.io, in collaboration with Anthropic (reference: ANT-2026-ZV45QDEP). Change-Id: I4e0b8b75928f616f1bf1d71140298d9b7611da96 Fixes: OS#7103 --- M src/libmsc/sdp_msg.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/95/44195/1 diff --git a/src/libmsc/sdp_msg.c b/src/libmsc/sdp_msg.c index 9b4cd98..79531b9 100644 --- a/src/libmsc/sdp_msg.c +++ b/src/libmsc/sdp_msg.c @@ -461,7 +461,7 @@ { char ipv[10]; char addr_str[INET6_ADDRSTRLEN]; - if (sscanf(src, "IN %s %s", ipv, addr_str) < 2) + if (sscanf(src, "IN %9s %45s", ipv, addr_str) < 2) return -EINVAL; /* supporting only IPv4 */ -- To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/44195?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: I4e0b8b75928f616f1bf1d71140298d9b7611da96 Gerrit-Change-Number: 44195 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by fixeria 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. fixeria 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 2: (10 comments) Patchset: PS2: > Unless there's really a known use of the low level APIs outside of libosmogsm, I'd rather have them […] Agreeing with Pau here. PS2: Thanks for your contribution! The code looks good in general, but I found a few potential issues. Also, adding a note to TODO-RELEASE and some unit tests would be very welcome, if you have spare cycles for that. File src/gsm/gsm48_ie.c: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/42b86a34_9b77d066?… : PS2, Line 341: if (cp >= endp) : return -EINVAL; Shouldn't we check the coding bit (number 7) here? ```suggestion if (cp >= endp) return -EINVAL; if (*cp & 0x40) /* not a speech version octet */ continue; ``` As far as I can see, 24.008 defines no "other extension of octet 3" contents, so we'll unlikely see `coding=1` on the wire in practice. Yet it may be a good idea to skip such octets. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/b54c8cb6_9633b1c7?… : PS2, Line 443: hld->v120_params = lld->octet_5_ext[1]; You should mask the extension bit here: ```suggestion hld->v120_params = lld->octet_5_ext[1] & 0x7F; ``` https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/11e85056_fedf6d05?… : PS2, Line 630: for (n = 0; n < lld->speech.num_vers; n++) { Maybe add an `assert()` before the loop to make sure that `lld->speech.num_vers` does not exceed `OSMO_BCAP_MAX_SPEECH_VER`? Or just return `-E2BIG` / `-EINVAL`? This is not as critical as the decode path, but an error in the given `struct osmo_bcap_ll` should not result in a stack overflow (overrunning the `buf[]`). https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/f156aa07_3bb79a3a?… : PS2, Line 647: for (n = 0; n < lld->data.extent_of_5; n++) Likewise here (see my comment above): it may be a good idea to check if `lld->data.extent_of_5` is at most `OSMO_BCAP_OCT5_MAX_EXT` bytes long. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/2e1695f8_a7ed4143?… : PS2, Line 650: for (n = 0; n < lld->data.extent_of_6; n++) Likewise here (see my comment above): it may be a good idea to check if `lld->data.extent_of_6` is at most `OSMO_BCAP_OCT6_MAX_EXT` bytes long. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/313abab3_7ec4df2a?… : PS2, Line 658: if (lv_only) It's worth checking `msgb_tailroom()` here first, since the `msg` comes from a caller and is not guaranteed to have enough room to fit `cp - buf` bytes. https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/092ff950_2a1ff230?… : PS2, Line 665: bcap_enc_trim_6d_6f AFAICS, this function also handles octet 6g, so maybe rename to `bcap_enc_trim_6d_6g()` or `bcap_enc_term_oct6_ext()`? https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/13c9d71f_623cb4ac?… : PS2, Line 715: if (hld->other_ra == GSM48_BCAP_OTHER_RA_V120) { `GSM48_BCAP_OTHER_RA_V120` is defined as 0, so `hld->other_ra` indicates V.120 even if it was not set explicitly. This results in octet 5b being emitted when it shouldn't be, e.g. with ITC=other (RDI) and RA=V.110, `other_ra` means nothing but still reads as "V.120", and a bogus 5b gets written: `... 08 00 80 ...`. ```suggestion if (rate_adaption == GSM48_BCAP_RA_OTHER && hld->other_ra == GSM48_BCAP_OTHER_RA_V120) { ``` -- 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: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 14:19:16 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: gsm_04_08.h: add presentation and screening indicators of calling number
by fixeria 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. fixeria has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email ) Change subject: gsm_04_08.h: add presentation and screening indicators of calling number ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44194?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: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 Gerrit-Change-Number: 44194 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:40:05 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.