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

Keyboard Shortcuts

Thread View

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

gerrit-log

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

September 2026

  • 1 participants
  • 1894 discussions
[M] Change in onomondo-ipa[master]: main: load addInitialEimRequest from hex-file
by dexter 09 Sep '26

09 Sep '26
dexter has submitted this change. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43413?usp=email ) Change subject: main: load addInitialEimRequest from hex-file ...................................................................... main: load addInitialEimRequest from hex-file We currently load the addInitialEimRequest binary blob from a binary file. Unfortunately this is very user-unfriendly since onomondo-eim generates the eimConfigurationData as hex string (REST API), which means the user has to convert this data into a binary file first. Let's eliminate those extra conversion steps by changing the input format to a textfile containing a hex-string. Then users can simply copy+paste the hex string they got from onomdon-eim. Related: SYS#8101 Change-Id: Ib2095e5042f42ce77af498831be9c8bd1af32401 --- M README.md D contrib/sample_eim_cfg.ber A contrib/sample_eim_cfg.txt M include/onomondo/ipa/utils.h M src/ipa/libipa/utils.c M src/ipa/main.c M tests/utils/utils_test.c 7 files changed, 84 insertions(+), 23 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve jolly: Looks good to me, but someone else must approve Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/README.md b/README.md index 44d76ea..864c6b4 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,9 @@ In case the IoT eUICC is not yet provisioned with an eIM configuration, onomondo-ipa can be used to perform the provisioning. The configuration must be supplied as a file that contains an AddInitialEimRequest (see also GSMA SGP.32, -section 5.9.18) data object in its encoded form. It is up to the user to compile the data object using appropriate tools -and the ASN specification presented in GSMA SGP.32. For testing purposes onomondo-ipa ships with a sample configuration -(contrib/sample_eim_cfg.ber) that expects the eIM to be running at 127.0.0.1:8000. +section 5.9.18) data object in its encoded form (as a hex-string). It is up to the user to compile the data object using +appropriate tools (e.g. onomondo-eim). For testing purposes onomondo-ipa ships with a sample configuration +(contrib/sample_eim_cfg.txt) which expects the eIM to be running at 127.0.0.1:8000. Example: load the initial eIM configuration onto the eUICC in PCSC reader 2 ``` diff --git a/contrib/sample_eim_cfg.ber b/contrib/sample_eim_cfg.ber deleted file mode 100644 index 0c0d00f..0000000 --- a/contrib/sample_eim_cfg.ber +++ /dev/null Binary files differ diff --git a/contrib/sample_eim_cfg.txt b/contrib/sample_eim_cfg.txt new file mode 100644 index 0000000..af7d842 --- /dev/null +++ b/contrib/sample_eim_cfg.txt @@ -0,0 +1 @@ +BF578183A08180307E800365494D810E3132372E302E302E313A383030308301018401FFA55BA059301306072A8648CE3D020106082A8648CE3D03010703420004FE584A6F450459574AECA195D0299737F74C89BA2D36DF9286EC25D973037A0FBA70D14DF3E1F7D0A305E57B95B731C4DE218D2D7F9F22113ED5D18C2E3DDF1C870207808900 diff --git a/include/onomondo/ipa/utils.h b/include/onomondo/ipa/utils.h index 8b849dd..f35a5a9 100644 --- a/include/onomondo/ipa/utils.h +++ b/include/onomondo/ipa/utils.h @@ -38,6 +38,7 @@ __ptr; \ }) +struct ipa_buf *ipa_hexparse(char *hexstr); char *ipa_hexdump(const uint8_t *data, size_t len); struct ipa_buf { diff --git a/src/ipa/libipa/utils.c b/src/ipa/libipa/utils.c index 4017e3b..7520018 100644 --- a/src/ipa/libipa/utils.c +++ b/src/ipa/libipa/utils.c @@ -34,6 +34,42 @@ return def; } +/*! Decode a human readable hexstring to binary. + * \param[in] hexstr pointer to hexstring. + * \returns pointer to ipa_buf containing the decoded binary data. */ +struct ipa_buf *ipa_hexparse(char *hexstr) +{ + struct ipa_buf *bin = NULL; + size_t i; + uint8_t byte; + int digit; + int digit_counter = 0; + size_t hexstr_len = strlen(hexstr); + + bin = ipa_buf_alloc(hexstr_len / 2); + for (i = 0; i < hexstr_len; i++) { + digit = -1; + if (*hexstr >= 0x30 && *hexstr <= 0x39) + digit = *hexstr & 0x0F; + else if (*hexstr >= 0x41 && *hexstr <= 0x46) + digit = (*hexstr & 0x0F) + 9; + else if (*hexstr >= 0x61 && *hexstr <= 0x66) + digit = (*hexstr & 0x0F) + 9; + hexstr++; + + if (digit >= 0) { + if (digit_counter % 2) { + byte |= digit; + bin->data[bin->len] = byte; + bin->len++; + } else + byte = (digit << 4); + digit_counter++; + } + } + return bin; +} + /*! Generate a hexdump string from the input data. * \param[in] data pointer to binary data. * \param[in] len length of binary data. diff --git a/src/ipa/main.c b/src/ipa/main.c index 13b034d..bf2e386 100644 --- a/src/ipa/main.c +++ b/src/ipa/main.c @@ -81,31 +81,31 @@ printf(" get-connectivity-parameters . Get connectivity parameters from acurrently active profile\n"); } -struct ipa_buf *load_ber_from_file(char *dir, char *file) +struct ipa_buf *load_ber_from_file(char *file) { - char path[PATH_MAX] = { 0 }; - FILE *ber_file = NULL; - struct ipa_buf *ber = NULL; - size_t ber_size; + FILE *hex_file = NULL; + struct ipa_buf *hex = NULL; + struct ipa_buf *bin = NULL; + size_t hex_size; - if (dir) - strcpy(path, dir); - strcat(path, file); + hex_file = fopen(file, "r"); + assert(hex_file); - ber_file = fopen(path, "r"); - assert(ber_file); + fseek(hex_file, 0L, SEEK_END); + hex_size = ftell(hex_file); + rewind(hex_file); - fseek(ber_file, 0L, SEEK_END); - ber_size = ftell(ber_file); - rewind(ber_file); + hex = ipa_buf_alloc(hex_size + 1); + assert(hex); + hex->len = fread(hex->data, sizeof(char), hex->data_len - 1, hex_file); + hex->data[hex->len] = '\0'; + fclose(hex_file); - ber = ipa_buf_alloc(ber_size + 1); - assert(ber); + bin = ipa_hexparse((char *)hex->data); + ipa_buf_free(hex); - ber->len = fread(ber->data, sizeof(char), ber->data_len, ber_file); - fclose(ber_file); - IPA_LOGP(SMAIN, LINFO, "loaded BER data from file %s, size: %zu\n", path, ber->len); - return ber; + IPA_LOGP(SMAIN, LINFO, "loaded binary data from hex file %s, size: %zu\n", file, bin->len); + return bin; } struct ipa_buf *load_nvstate_from_file(char *path) @@ -364,7 +364,7 @@ break; case OPER_ADD_INITIAL_EIM: /* Load initial eIM configuration */ - struct ipa_buf *eim_cfg = load_ber_from_file(NULL, initial_eim_cfg_file); + struct ipa_buf *eim_cfg = load_ber_from_file(initial_eim_cfg_file); ipa_add_init_eim_cfg(ctx, eim_cfg); IPA_FREE(eim_cfg); break; diff --git a/tests/utils/utils_test.c b/tests/utils/utils_test.c index 517f0d7..eeadde2 100644 --- a/tests/utils/utils_test.c +++ b/tests/utils/utils_test.c @@ -51,9 +51,32 @@ IPA_FREE(tag_list); } +void ipa_hexparse_test(void) +{ + char hexstr[] = + "bf:57:81:83:A0 81 80 30 7E 80.03.65.494D81////0E31kkk32372En302E302E313A38303oooo0308301018401FFA55BA059301306072A8648CE3D020106082A8648CE3D0301070342...0004FE584A6F450459574A-E-C-A19 5 D0299737F74C89BA2D36DFOOOO9286EC25D973037:A0FBA70D14DF3E1F7D0A305E57B95B731C4DE218D2D7F9F22113ed5d18c2e3ddf1c870207808900"; + char expected_data[] = { 0xBF, 0x57, 0x81, 0x83, 0xA0, 0x81, 0x80, 0x30, 0x7E, 0x80, 0x03, + 0x65, 0x49, 0x4D, 0x81, 0x0E, 0x31, 0x32, 0x37, 0x2E, 0x30, 0x2E, 0x30, 0x2E, + 0x31, 0x3A, 0x38, 0x30, 0x30, 0x30, 0x83, 0x01, 0x01, 0x84, 0x01, 0xFF, 0xA5, + 0x5B, 0xA0, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, + 0x01, 0x06, 0x08, 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x03, 0x01, 0x07, 0x03, 0x42, + 0x00, 0x04, 0xFE, 0x58, 0x4A, 0x6F, 0x45, 0x04, 0x59, 0x57, 0x4A, 0xEC, 0xA1, + 0x95, 0xD0, 0x29, 0x97, 0x37, 0xF7, 0x4C, 0x89, 0xBA, 0x2D, 0x36, 0xDF, 0x92, + 0x86, 0xEC, 0x25, 0xD9, 0x73, 0x03, 0x7A, 0x0F, 0xBA, 0x70, 0xD1, 0x4D, 0xF3, + 0xE1, 0xF7, 0xD0, 0xA3, 0x05, 0xE5, 0x7B, 0x95, 0xB7, 0x31, 0xC4, 0xDE, 0x21, + 0x8D, 0x2D, 0x7F, 0x9F, 0x22, 0x11, 0x3E, 0xD5, 0xD1, 0x8C, 0x2E, 0x3D, 0xDF, + 0x1C, 0x87, 0x02, 0x07, 0x80, 0x89, 0x00 + }; + struct ipa_buf *bin; + bin = ipa_hexparse(hexstr); + assert(memcmp(bin->data, expected_data, bin->len) == 0); + ipa_buf_free(bin); +} + int main(int argc, char **argv) { ipa_tag_in_taglist_test(); + ipa_hexparse_test(); return 0; } -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43413?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: Ib2095e5042f42ce77af498831be9c8bd1af32401 Gerrit-Change-Number: 43413 Gerrit-PatchSet: 4 Gerrit-Owner: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[M] Change in onomondo-ipa[master]: main: load addInitialEimRequest from hex-file
by dexter 09 Sep '26

09 Sep '26
dexter has posted comments on this change by dexter. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43413?usp=email ) Change subject: main: load addInitialEimRequest from hex-file ...................................................................... Patch Set 4: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43413?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: Ib2095e5042f42ce77af498831be9c8bd1af32401 Gerrit-Change-Number: 43413 Gerrit-PatchSet: 4 Gerrit-Owner: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Comment-Date: Wed, 09 Sep 2026 15:30:25 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in pysim[master]: smpp2sim: make the SCP81 BIP relay work
by dexter 09 Sep '26

09 Sep '26
Attention is currently required from: Hoernchen, daniel, laforge. dexter has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43545?usp=email ) Change subject: smpp2sim: make the SCP81 BIP relay work ...................................................................... Patch Set 2: Code-Review+1 (11 comments) Patchset: PS2: I have now carefully read that through. I think this patch would benefit a lot from a more verbose documentation. All methods that are important for an API user should have all input and output parameters documented and contain a hint on how they should be used. I know I have left a lot of comments, some reflect what I have understood. Maybe you can use that for a reference to improve the documentation. Otherwise I think the logic is all right. This should work. File pySim/bip.py: https://gerrit.osmocom.org/c/pysim/+/43545/comment/fbb002a2_3adc6228?usp=em… : PS2, Line 30: # Without them the handler builds and logs what it would send. I would move such documentation into the API docstrings of the class. General information is ok at this location, the specific bits like which parameters the constructors get, etc, that should be in the API docstrings https://gerrit.osmocom.org/c/pysim/+/43545/comment/d2648cd9_6f51fb19?usp=em… : PS2, Line 64: bandwidth.. This explains why we have moved away from twisted. I would put this into a normal comment. Having this in the API docstring is a bit too much I think... https://gerrit.osmocom.org/c/pysim/+/43545/comment/b2d9b943_f029e2e2?usp=em… : PS2, Line 119: if was_empty and not self._closing: I think its important to document why we only notify when the buffer was empty. As far as I understand the rationale is that when a new event happens the buffer is usually empty. So data comes in, the notify happens and a ENVELOPE EVENT DOWNLOAD is sent to the card (actively by the API user, via the ENVELOPE command). The card now knows that there was an event and how much data is in the buffer. Then the card sends proactive RECEIVE DATA commands to get the data from the buffer. When the card has received all data, the buffer is empty again and ready for a new event. Since with each RECEIVE DATA, the card gets the current amount of remaining bytes, we can be sure that the cards reads all bytes until the buffer really runs empty. So basically we will see burts of incoming data with pauses in between. The ENVELOPE EVENT DOWNLOAD is to get the data transfer to the card going again after there was a pause. https://gerrit.osmocom.org/c/pysim/+/43545/comment/377bf6d1_1d6fa423?usp=em… : PS2, Line 126: def rx_available(self) -> int: Missing API doc (you have take_rx and wait_rx, maybe rename this method to "available_rx" or vice-versa?) https://gerrit.osmocom.org/c/pysim/+/43545/comment/d4a1deef_429e9510?usp=em… : PS2, Line 175: def __init__(self, on_data_available=None): I think here it is in particular important to put an API docstring and to document the on_data_available callback in the API docstring. https://gerrit.osmocom.org/c/pysim/+/43545/comment/9a4cb166_3a92c552?usp=em… : PS2, Line 189: def channel_delete(self, chan_nr: int): maybe add a docstring? https://gerrit.osmocom.org/c/pysim/+/43545/comment/687f6ee6_bf03f992?usp=em… : PS2, Line 192: def notify_data_available(self, chan: ProactChannel): The ProactChannel object is created by the channel_create method in this class. Maybe it makes sense to give the self._on_data_available callback to the constructor of ProactChannel. Then the ProactChannel can call it directly, without reaching back to here. This would also result in a clearer architecture as it seems the only reason why the ProactChannel object has a reference to the ProactChannels object is to reach the notify_data_available callback. Then we can also just pass the callback directly with the constructor. We then also can drop the notify_data_available method here entirely. https://gerrit.osmocom.org/c/pysim/+/43545/comment/7ad435c6_e6e4f723?usp=em… : PS2, Line 199: def __init__(self, data_available_sink=None, sms_sink=None): Explain the parameters in an API docstring. In particular the data_available_sink is important here. The API user should know what to do with the result. I think the comment is already good, but I would mention that the API user gets the encoded bytes. So all he has to do is to forward those bytes using the ENVELOPE command. https://gerrit.osmocom.org/c/pysim/+/43545/comment/91cc2b9d_11c38d19?usp=em… : PS2, Line 268: def build_data_available_envelope(self, chan: ProactChannel) -> bytes: As far as I can see this is called from _on_channel_data_available only. This means that it is an internal method - not to be called by API users. I would recommend to prefix it with an underscore when this is the case. https://gerrit.osmocom.org/c/pysim/+/43545/comment/80ce1b95_14c01fd5?usp=em… : PS2, Line 392: def handle_ReceiveData(self, pcmd: ProactiveCommand): maybe add some more API doc on how to use this function? As far as I understood, this is to be called by the API user when he has received a proactive RECEIVE DATA command from the card. So with this the card basically actively fetches data from the rx buffer. -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43545?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: If96c768f2e35c20ea3753e601059410121517b60 Gerrit-Change-Number: 43545 Gerrit-PatchSet: 2 Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de> Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: daniel <dwillmann(a)sysmocom.de> Gerrit-Comment-Date: Wed, 09 Sep 2026 13:47:31 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ggsn[master]: configure: search libresolv for res_9_init
by pespin 09 Sep '26

09 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email ) Change subject: configure: search libresolv for res_9_init ...................................................................... configure: search libresolv for res_9_init sgsnemu points the resolver at the DNS server received in the PCO by writing to the resolver state from <resolv.h>. glibc keeps that state in libc, so nothing extra is needed on GNU/Linux. Darwin keeps it in libresolv and renames the interface to the BIND 9 symbols: /usr/include/resolv.h has "#define res_init res_9_init" and "#define __res_state __res_9_state". The link of sgsnemu then fails with Undefined symbols for architecture arm64: "___res_9_state" Add AC_SEARCH_LIBS([res_9_init], [resolv]) so -lresolv is picked up where the symbol lives there. res_9_init is deliberately the name searched for, rather than res_init: it exists only on the platforms that carry this renaming, so on glibc the search finds nothing, LIBS stays as it was and the link line does not change. Change-Id: I97787b051c712c5cfdb241cb7931a214d5a87630 Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M configure.ac 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/configure.ac b/configure.ac index cbb6b66..3283aae 100644 --- a/configure.ac +++ b/configure.ac @@ -152,6 +152,10 @@ # check for getopt in standard library adl_FUNC_GETOPT_LONG +# sgsnemu sets the resolver state (_res) from <resolv.h>. glibc keeps it in +# libc; Darwin exports it from libresolv under BIND 9 names (res_9_*). +AC_SEARCH_LIBS([res_9_init], [resolv]) + AM_INIT_AUTOMAKE([foreign]) PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.14.2) -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I97787b051c712c5cfdb241cb7931a214d5a87630 Gerrit-Change-Number: 43584 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-trx[master]: build: probe UHD version with PKG_CHECK_EXISTS
by pespin 09 Sep '26

09 Sep '26
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email ) Change subject: build: probe UHD version with PKG_CHECK_EXISTS ...................................................................... build: probe UHD version with PKG_CHECK_EXISTS configure.ac appends -lboost_thread for libuhd < 4.2, which needs it because of a bug in its own code. The probe is a second PKG_CHECK_MODULES(UHD, uhd < 004.002, ...) reusing the UHD variable prefix of the first one. That never asks pkg-config. PKG_CHECK_MODULES expands _PKG_CONFIG, which opens with if test -n "$$1"; then pkg_cv_[]$1="$$1" so once UHD_CFLAGS and UHD_LIBS are set by the earlier PKG_CHECK_MODULES(UHD, uhd >= 003.011), the second call takes those values as its answer, leaves pkg_failed at no, and runs the action-if-found branch whatever the installed version is. -lboost_thread is therefore always appended. On GNU/Linux that only adds a library that is usually present, so the bug is invisible. On macOS ARM64 with UHD 4.10 from Homebrew there is no such library on the link path and the build stops: ld: library 'boost_thread' not found Use PKG_CHECK_EXISTS, which asks pkg-config and sets no variables. The workaround then applies where it was meant to, on libuhd < 4.2. Change-Id: Icbd8af94f258128ea75c0268e0a240dc423ff69e Signed-off-by: Andrei Gosman <andrei.gosman(a)gmail.com> --- M configure.ac 1 file changed, 2 insertions(+), 3 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved diff --git a/configure.ac b/configure.ac index a384495..0cd388d 100644 --- a/configure.ac +++ b/configure.ac @@ -195,9 +195,8 @@ # code and therefore requires linking against boost_thread. It's missing in # uhd.pc, so work around it here. # https://github.com/EttusResearch/uhd/commit/04a83b6e76beef970854da69ba882d7… - PKG_CHECK_MODULES(UHD, uhd < 004.002, - [LIBS="$LIBS -lboost_thread"], - [] + PKG_CHECK_EXISTS([uhd < 004.002], + [LIBS="$LIBS -lboost_thread"] ) ]) -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: Icbd8af94f258128ea75c0268e0a240dc423ff69e Gerrit-Change-Number: 43580 Gerrit-PatchSet: 2 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in osmo-trx[master]: build: probe UHD version with PKG_CHECK_EXISTS
by fixeria 09 Sep '26

09 Sep '26
Attention is currently required from: Andrei G. fixeria has posted comments on this change by Andrei G. ( https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email ) Change subject: build: probe UHD version with PKG_CHECK_EXISTS ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/43580?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: Icbd8af94f258128ea75c0268e0a240dc423ff69e Gerrit-Change-Number: 43580 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Comment-Date: Wed, 09 Sep 2026 11:49:16 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in osmo-ggsn[master]: configure: search libresolv for res_9_init
by fixeria 09 Sep '26

09 Sep '26
Attention is currently required from: Andrei G. fixeria has posted comments on this change by Andrei G. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email ) Change subject: configure: search libresolv for res_9_init ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/43584?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I97787b051c712c5cfdb241cb7931a214d5a87630 Gerrit-Change-Number: 43584 Gerrit-PatchSet: 1 Gerrit-Owner: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: Andrei G <andrei.gosman(a)gmail.com> Gerrit-Comment-Date: Wed, 09 Sep 2026 11:46:39 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in simtrace2[master]: build: do distcheck for the host tools
by fixeria 09 Sep '26

09 Sep '26
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/simtrace2/+/43530?usp=email ) Change subject: build: do distcheck for the host tools ...................................................................... build: do distcheck for the host tools This allows to detect missing files in the release tarballs. Change-Id: I2352d99a91079e027ca9827c10663212a3f6292f --- M contrib/jenkins.sh 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index deaeea5..fdb61ea 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -87,7 +87,7 @@ autoreconf --install --force ./configure --enable-sanitize --enable-werror $MAKE $PARALLEL_MAKE -#$MAKE distcheck || cat-testlogs.sh +$MAKE distcheck || cat-testlogs.sh make dist #if [ "$WITH_MANUALS" = "1" ] && [ "$PUBLISH" = "1" ]; then -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43530?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I2352d99a91079e027ca9827c10663212a3f6292f Gerrit-Change-Number: 43530 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
1 0
0 0
[XS] Change in simtrace2[master]: build: include version.h.tpl in the release tarballs
by fixeria 09 Sep '26

09 Sep '26
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/simtrace2/+/43529?usp=email ) Change subject: build: include version.h.tpl in the release tarballs ...................................................................... build: include version.h.tpl in the release tarballs simtrace2-host-0.9.1.tar.bz2 does not compile because this file is missing. Add it to EXTRA_DIST. make all-recursive make[1]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1' Making all in include make[2]: Entering directory '/build/simtrace2/src/simtrace2-0.9.1/include' make[2]: *** No rule to make target 'osmocom/simtrace2/version.h.tpl', needed by 'osmocom/simtrace2/version.h'. Stop. make[2]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1/include' make[1]: *** [Makefile:452: all-recursive] Error 1 make[1]: Leaving directory '/build/simtrace2/src/simtrace2-0.9.1' make: *** [Makefile:376: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... Change-Id: I8c50c8df012b2b7eb5ee6046f14ccc4d2c07194e Fixes: d0ad985e ("Generate a version.h file") --- M host/include/Makefile.am 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: osmith: Looks good to me, approved Jenkins Builder: Verified diff --git a/host/include/Makefile.am b/host/include/Makefile.am index 3a9722c..eba4978 100644 --- a/host/include/Makefile.am +++ b/host/include/Makefile.am @@ -16,3 +16,5 @@ osmocom/simtrace2/gsmtap.h \ osmocom/simtrace2/version.h \ $(NULL) + +EXTRA_DIST = osmocom/simtrace2/version.h.tpl -- To view, visit https://gerrit.osmocom.org/c/simtrace2/+/43529?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-Change-Id: I8c50c8df012b2b7eb5ee6046f14ccc4d2c07194e Gerrit-Change-Number: 43529 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
1 0
0 0
[L] Change in pysim[master]: sms/smpp-ota-tool: reassemble multi part response SMS
by dexter 09 Sep '26

09 Sep '26
Attention is currently required from: Hoernchen. dexter has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43544?usp=email ) Change subject: sms/smpp-ota-tool: reassemble multi part response SMS ...................................................................... Patch Set 2: Code-Review+1 (7 comments) Patchset: PS2: I think this patch should be ok, also there are comprehenive testcases which show that it works. But as far as I can see it is possible to send incomplete message sets, which then pile up in the ConcatenatedSmsReassembler. This may be a problem for long running instances. This is something you should check back. File pySim/sms.py: https://gerrit.osmocom.org/c/pysim/+/43544/comment/e78dd65e_4450d2b0?usp=em… : PS2, Line 99: # TS 23.040 9.2.3.24.1/.8 IEI of the concat IE You are referencing to 9.2.3.24.1 and 9.2.3.24.8, this is 100% correct, but It sent me a bit off track when I wanted to lookup the IEI hex values. Those are in the table at 9.2.3.24 I would recommend to put the reference like so: ``` # IEI: Concatenated short messages, 8-bit reference number # (see 3GPP TS 23.040 section 9.2.3.24 and section 9.2.3.24.1) CONCAT_8BIT = 0x00 # IEI: Concatenated short message, 16-bit reference number # (see 3GPP TS 23.040 section 9.2.3.24 and section 9.2.3.24.8) CONCAT_16BIT = 0x08 ``` https://gerrit.osmocom.org/c/pysim/+/43544/comment/73fd2e5d_07688ec7?usp=em… : PS2, Line 132: # TS 23.040 9.2.3.24.1.8 , total zero or seqno zero / > total: Did you mean TS 23.040 9.2.3.24.1/8 ? https://gerrit.osmocom.org/c/pysim/+/43544/comment/0a8acfcc_f6caee7d?usp=em… : PS2, Line 153: if len(s['parts']) < total: I wonder what happens when someone keeps sending incomplete sets. For example a set of three messages is expected, but only two arrive. Then the incomplete set is stuck forever, creating a memory leak. I don't know if this is an issue or not, but as far as I understand, the API user creates an ConcatenatedSmsReassembler object once and then passes all incoming messages through it. The object exists as long as the process runs. If this is a problem I would suggest to put a timestamp when the set is created. When the .add method is called, the sets are checked for expired timestamps. This way incomplete sets can never pile up over time. File tests/unittests/test_sms.py: https://gerrit.osmocom.org/c/pysim/+/43544/comment/ab35adfa_9b02834f?usp=em… : PS2, Line 109: """TS 23.040 9.2.3.24 reassembly of multi-part SMS. I would recommend to reference the spac as "3GPP TS 23.040" and not only "TS ..." (sure, you could look at the dots and the number of digits, but I think its better to be verbose) https://gerrit.osmocom.org/c/pysim/+/43544/comment/6c369a12_667cd48c?usp=em… : PS2, Line 113: form before decoding.""" I would rephrase it a bit: An OTA response that exceeds a single SHORT MESSAGE is delivered in several parts using the SEND SHORT MESSAGE proactive command. The receiver must recombine the individual parts into a single part before decoding. https://gerrit.osmocom.org/c/pysim/+/43544/comment/d50a58dc_0767571a?usp=em… : PS2, Line 137: self.assertEqual(b2h(built), '0700030102017100') maybe move test_ground_truth_udh above test_single_part_passthrough? It seems to be just a precursor that verifies that the _concat methods work correctly. How about a similar test to test _concat16 as well? -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43544?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: I8c81097e607e0d055c4f031bbcc8a74d5c24a0e7 Gerrit-Change-Number: 43544 Gerrit-PatchSet: 2 Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Comment-Date: Wed, 09 Sep 2026 10:40:57 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.