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]: cbsp: cbsp_decode_cell_list(): do not reject empty cell list
by laforge 29 Nov '26

29 Nov '26
Attention is currently required from: fixeria, osmith. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44177?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): do not reject empty cell list ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44177?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: If69ae9a90fe2e582c909386d6fe6f32f017591af Gerrit-Change-Number: 44177 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> 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: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Sun, 29 Nov 2026 16:01:03 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in libosmocore[master]: tests/smscb_cbsp: add more decode test cases
by laforge 29 Nov '26

29 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44176?usp=email ) Change subject: tests/smscb_cbsp: add more decode test cases ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44176?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: I70e40ac8cd8b6443fa4ef9246e45332c438a95b5 Gerrit-Change-Number: 44176 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Sun, 29 Nov 2026 16:00:38 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-remsim[master]: bankd: fix handling of partial writes in worker_send_rspro()
by fixeria 29 Nov '26

29 Nov '26
Attention is currently required from: pespin. fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email ) Change subject: bankd: fix handling of partial writes in worker_send_rspro() ...................................................................... Patch Set 1: (1 comment) File src/bankd/bankd_main.c: https://gerrit.osmocom.org/c/osmo-remsim/+/44184/comment/3607137c_b982819c?… : PS1, Line 734: written += rc; > why not do msgb_pull() and operate always on msgb_length()? Would make all this a lot simpler. […] Acknowledged -- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: I2c1675485404ecedb39f9ca25c234623c71cddf5 Gerrit-Change-Number: 44184 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Sun, 29 Nov 2026 13:20:35 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-remsim[master]: bankd: fix handling of partial writes in worker_send_rspro()
by fixeria 29 Nov '26

29 Nov '26
Attention is currently required from: fixeria. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder Change subject: bankd: fix handling of partial writes in worker_send_rspro() ...................................................................... bankd: fix handling of partial writes in worker_send_rspro() worker_send_rspro() calls write() once and treats anything other than a complete write as an error. Even on a blocking socket, write() may transfer less than requested, e.g. if it gets interrupted by a signal (such as SIGMAPDEL or SIGMAPADD) after some data has already been sent. Bailing out in this case leaves a truncated IPA message on the wire. Keep calling write() until the whole message has been sent, retrying on EINTR, and only fail on real errors. While at it, make the error message more informative. Change-Id: I2c1675485404ecedb39f9ca25c234623c71cddf5 --- M src/bankd/bankd_main.c 1 file changed, 13 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/84/44184/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/44184?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: I2c1675485404ecedb39f9ca25c234623c71cddf5 Gerrit-Change-Number: 44184 Gerrit-PatchSet: 2 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: gsm: fix division by zero in osmo_nri_v_limit_by_ranges()
by fixeria 29 Nov '26

29 Nov '26
Attention is currently required from: bucketking657. fixeria has posted comments on this change by bucketking657. ( https://gerrit.osmocom.org/c/libosmocore/+/44187?usp=email ) Change subject: gsm: fix division by zero in osmo_nri_v_limit_by_ranges() ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44187?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: Ib4571d2a8e83ee94acb75a9d9d695048ee1bf370 Gerrit-Change-Number: 44187 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: bucketking657 <joshuashilts(a)gmail.com> Gerrit-Comment-Date: Sun, 29 Nov 2026 11:59:59 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in ...pyosmocom[master]: add bertlv_encode()
by neels 29 Nov '26

29 Nov '26
neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/44189?usp=email ) Change subject: add bertlv_encode() ...................................................................... add bertlv_encode() trivial convenience function that does "len(v), v" in one step. Change-Id: Idc9412f8f9ad4ae9a6babd28031234046a8e9516 --- M src/osmocom/tlv.py 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/89/44189/1 diff --git a/src/osmocom/tlv.py b/src/osmocom/tlv.py index 1aa0103..b822e59 100644 --- a/src/osmocom/tlv.py +++ b/src/osmocom/tlv.py @@ -240,6 +240,9 @@ else: raise ValueError("Length > 32bits not supported") +def bertlv_encode(t: int, v: bytes): + return bertlv_encode_tag(t) + bertlv_encode_len(len(v)) + v + def bertlv_parse_one(binary: bytes) -> Tuple[dict, int, bytes, bytes]: """Parse a single TLV IE at the start of the given binary data. Args: -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/44189?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: Idc9412f8f9ad4ae9a6babd28031234046a8e9516 Gerrit-Change-Number: 44189 Gerrit-PatchSet: 1 Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
1 0
0 0
[S] Change in ...pyosmocom[master]: tlv.py: add bertlv_to_str()
by neels 29 Nov '26

29 Nov '26
neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/44188?usp=email ) Change subject: tlv.py: add bertlv_to_str() ...................................................................... tlv.py: add bertlv_to_str() Elevate the pysim/contrib/unber.py tool to library level. For BF76 unit tests, I want to output BER data in human readable form. For that, I found unber.py. To be able to use its output in unit tests, I want it to be a library function. Here is the best place. Change-Id: I5fd5368c01267de8551d0ad384352971d510935b --- M src/osmocom/tlv.py 1 file changed, 18 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/88/44188/1 diff --git a/src/osmocom/tlv.py b/src/osmocom/tlv.py index ada7380..1aa0103 100644 --- a/src/osmocom/tlv.py +++ b/src/osmocom/tlv.py @@ -22,6 +22,7 @@ from typing import List, Tuple, Optional import osmocom +from osmocom.utils import b2h ######################################################################### # poor man's COMPREHENSION-TLV decoder. @@ -279,6 +280,23 @@ remainder = remainder[length:] return (tag, length, value, remainder) +def bertlv_to_str(content: bytes): + def one_level(content: bytes, indent: int): + res = [] + remainder = content + while len(remainder): + tdict, l, v, remainder = bertlv_parse_one(remainder) + #res.append(str(tdict)) + rawtag = bertlv_encode_tag(tdict) + if tdict['constructed']: + res.append("%s%s l=%d" % (indent*" ", b2h(rawtag), l)) + res.extend(one_level(v, indent + 1)) + else: + res.append("%s%s l=%d %s" % (indent*" ", b2h(rawtag), l, b2h(v))) + return res + + return '\n'.join(one_level(content, 0)) + ######################################################################### # poor man's DGI decoder. ######################################################################### -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/44188?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: I5fd5368c01267de8551d0ad384352971d510935b Gerrit-Change-Number: 44188 Gerrit-PatchSet: 1 Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
1 0
0 0
[S] Change in libosmocore[master]: gsm: fix division by zero in osmo_nri_v_limit_by_ranges()
by bucketking657 27 Nov '26

27 Nov '26
bucketking657 has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44187?usp=email ) Change subject: gsm: fix division by zero in osmo_nri_v_limit_by_ranges() ...................................................................... gsm: fix division by zero in osmo_nri_v_limit_by_ranges() If no NRI range fits within nri_bitlen (empty list, or all ranges above 2^nri_bitlen - 1), total_values is 0 and the modulo raises SIGFPE. Return -1 instead. Fixes: OS#7146 Change-Id: Ib4571d2a8e83ee94acb75a9d9d695048ee1bf370 --- M src/gsm/gsm23236.c M tests/gsm23236/gsm23236_test.c M tests/gsm23236/gsm23236_test.ok 3 files changed, 41 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/87/44187/1 diff --git a/src/gsm/gsm23236.c b/src/gsm/gsm23236.c index a80ecf4..f5c40bc 100644 --- a/src/gsm/gsm23236.c +++ b/src/gsm/gsm23236.c @@ -115,6 +115,10 @@ total_values += OSMO_MIN(range_max, range->last) - range->first + 1; } + /* No range value fits within nri_bitlen, so there is nothing to pick from. */ + if (!total_values) + return -1; + /* Modulo the given NRI value by that, and pick that nth value from the given ranges. * (nri_ranges is pretty much guaranteed to be sorted and range_max checks thus would no longer be needed, but * just check them anyway.) */ diff --git a/tests/gsm23236/gsm23236_test.c b/tests/gsm23236/gsm23236_test.c index 6cbdbeb..a7c5936 100644 --- a/tests/gsm23236/gsm23236_test.c +++ b/tests/gsm23236/gsm23236_test.c @@ -594,6 +594,32 @@ } } +void test_nri_limit_by_ranges_no_fit(void) +{ + struct osmo_nri_ranges *nri_ranges = osmo_nri_ranges_alloc(ctx); + printf("\n%s()\n", __func__); + +#define LIMIT_NO_FIT(BITLEN) do { \ + int16_t nri_v = 42; \ + int rc = osmo_nri_v_limit_by_ranges(&nri_v, nri_ranges, BITLEN); \ + printf("osmo_nri_v_limit_by_ranges(42, bitlen %u) -> nri_v=%d rc=%d", BITLEN, nri_v, rc); \ + if (rc < 0 && nri_v == 42) { \ + printf(" ok\n"); \ + } else { \ + printf(" ERROR: expected nri_v=42 rc<0\n"); \ + ok = false; \ + } \ + } while (0) + + printf("empty list:\n"); + LIMIT_NO_FIT(8); + + ADD(300, 400); + printf("all ranges above the bitlen:\n"); + LIMIT_NO_FIT(8); + talloc_free(nri_ranges); +} + int main(int argc, char **argv) { ctx = talloc_named_const(NULL, 0, "nri_test"); @@ -603,6 +629,7 @@ test_nri_range_validate(); test_nri_list(); test_nri_limit_by_ranges(); + test_nri_limit_by_ranges_no_fit(); talloc_free(ctx); if (!ok) { diff --git a/tests/gsm23236/gsm23236_test.ok b/tests/gsm23236/gsm23236_test.ok index 22630bf..d436e6d 100644 --- a/tests/gsm23236/gsm23236_test.ok +++ b/tests/gsm23236/gsm23236_test.ok @@ -511,4 +511,14 @@ osmo_tmsi_nri_v_limit_by_ranges(0x00110000, 8) -> tmsi=0x00200000 nri_v=32 rc=0 ok osmo_tmsi_nri_v_limit_by_ranges(0x00120000, 8) -> tmsi=0x000a0000 nri_v=10 rc=0 ok +test_nri_limit_by_ranges_no_fit() +empty list: +osmo_nri_v_limit_by_ranges(42, bitlen 8) -> nri_v=42 rc=-1 ok +osmo_nri_ranges_add(300, 400) -> 0 +nri_ranges = { + { 300, 400 }, +}; +all ranges above the bitlen: +osmo_nri_v_limit_by_ranges(42, bitlen 8) -> nri_v=42 rc=-1 ok + pass -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44187?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ib4571d2a8e83ee94acb75a9d9d695048ee1bf370 Gerrit-Change-Number: 44187 Gerrit-PatchSet: 1 Gerrit-Owner: bucketking657 <joshuashilts(a)gmail.com>
1 0
0 0
[S] Change in pysim[master]: Decode GSM 7-bit packed EF.PNN data
by laforge 27 Nov '26

27 Nov '26
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/41913?usp=email ) Change subject: Decode GSM 7-bit packed EF.PNN data ...................................................................... Decode GSM 7-bit packed EF.PNN data Use the NetworkNameAdapter from pyosmocom to decode the Network Name IEs (TS 24.008 Section 10.5.3.5a) in EF.PNN records, instead of exposing the raw bytes. Depends: pyosmocom.git Change-Id I4661352e39031dc0041fc7851f675d6083a1035f Change-Id: I4558fd011592aeeae2389fe8a1f62f3d7e21d219 Closes: OS#6930 --- M pySim/ts_51_011.py M requirements.txt M setup.py 3 files changed, 13 insertions(+), 8 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index af7a433..1855a13 100644 --- a/pySim/ts_51_011.py +++ b/pySim/ts_51_011.py @@ -947,17 +947,22 @@ # TS 51.011 Section 4.2.58 class EF_PNN(LinFixedEF): - # TODO: 430a82d432bbbc7eb75de432450a82d432bbbc7eb75de432ffffffff - # TODO: 430a82c596b34cbfbfe5eb39ffffffffffffffffffffffffffffffffffff + _test_de_encode = [ + ('430a82d432bbbc7eb75de432450a82d432bbbc7eb75de432', + [{'full_name_for_network': 'Telekom.de'}, {'short_name_for_network': 'Telekom.de'}]), + ('430a82c596b34cbfbfe5eb39', + [{'full_name_for_network': 'E-Networks'}]), + ('430584c330bc0c', + [{'full_name_for_network': 'Cape'}]), + ] + class FullNameForNetwork(BER_TLV_IE, tag=0x43): # TS 24.008 10.5.3.5a - # TODO: proper decode - _construct = GreedyBytes + _construct = NetworkNameAdapter(GreedyBytes) class ShortNameForNetwork(BER_TLV_IE, tag=0x45): # TS 24.008 10.5.3.5a - # TODO: proper decode - _construct = GreedyBytes + _construct = NetworkNameAdapter(GreedyBytes) class NetworkNameCollection(TLV_IE_Collection, nested=[FullNameForNetwork, ShortNameForNetwork]): pass diff --git a/requirements.txt b/requirements.txt index 947ccff..a50f701 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ jsonpath-ng construct>=2.10.70 bidict -pyosmocom>=0.0.12 +pyosmocom>=0.0.13 pyyaml>=5.4 termcolor colorlog diff --git a/setup.py b/setup.py index 31f839b..32f1a55 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ "jsonpath-ng", "construct >= 2.10.70", "bidict", - "pyosmocom >= 0.0.12", + "pyosmocom >= 0.0.13", "pyyaml >= 5.4", "termcolor", "colorlog", -- To view, visit https://gerrit.osmocom.org/c/pysim/+/41913?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I4558fd011592aeeae2389fe8a1f62f3d7e21d219 Gerrit-Change-Number: 41913 Gerrit-PatchSet: 5 Gerrit-Owner: biocape <biofel(a)cape.co> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[S] Change in pysim[master]: Decode GSM 7-bit packed EF.PNN data
by laforge 27 Nov '26

27 Nov '26
Attention is currently required from: biocape, fixeria. laforge has posted comments on this change by biocape. ( https://gerrit.osmocom.org/c/pysim/+/41913?usp=email ) Change subject: Decode GSM 7-bit packed EF.PNN data ...................................................................... Patch Set 5: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/41913?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I4558fd011592aeeae2389fe8a1f62f3d7e21d219 Gerrit-Change-Number: 41913 Gerrit-PatchSet: 5 Gerrit-Owner: biocape <biofel(a)cape.co> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: biocape <biofel(a)cape.co> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Fri, 27 Nov 2026 14:14:05 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.