Attention is currently required from: daniel, fixeria, laforge, pespin.
osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/docker-playground/+/41430?usp=email )
Change subject: nplab-m3ua-test: Parametrize git branch and change it to osmocom/master
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File nplab-m3ua-test/Dockerfile:
https://gerrit.osmocom.org/c/docker-playground/+/41430/comment/8fc37645_62c… :
PS1, Line 12: cp runtest-junitxml.py /usr/local/bin/
not sure if only this one file is needed. but if that is the case, you could also directly do this:
```
wget https://gitea.osmocom.org/nplab/m3ua-testtool/raw/branch/osmocom/master/run… -O /usr/local/bin/runtest-junitxml.py
```
just an optimization, doesn't need to block this patch
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/41430?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I78b2a27b355f11ba64476216bc7ef76713e8f61e
Gerrit-Change-Number: 41430
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 14 Nov 2025 12:45:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/41431?usp=email )
Change subject: nplab-m3ua-test: Configure Network Indicator as International
......................................................................
nplab-m3ua-test: Configure Network Indicator as International
That's what we are using at the osmo-stp configuration.
Until now it didn't matter since libosmo-sigtran didn't validate NI
matching configuration on received messages, but since
1af56bf8cf266dd708b623e75d6d175a58f3dd47 it does.
Change-Id: Iae825ebc588524c7a3761c80392940733f3887a6
---
M nplab-m3ua-test/m3ua-param-testtool.scm
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/31/41431/1
diff --git a/nplab-m3ua-test/m3ua-param-testtool.scm b/nplab-m3ua-test/m3ua-param-testtool.scm
index 10ca653..c919195 100644
--- a/nplab-m3ua-test/m3ua-param-testtool.scm
+++ b/nplab-m3ua-test/m3ua-param-testtool.scm
@@ -66,7 +66,7 @@
(define ss7-message (list 11 34 45 67 67 89))
(define ss7-si 0)
-(define iut-ni 1)
+(define iut-ni 0)
(define iut-mp 0)
(define iut-sls 0)
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/41431?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Iae825ebc588524c7a3761c80392940733f3887a6
Gerrit-Change-Number: 41431
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/41416?usp=email )
Change subject: mtp: Implement already defined osmo_mtp_prim_name()
......................................................................
mtp: Implement already defined osmo_mtp_prim_name()
Implement osmo_mtp_prim_name(), which was defined in a header
file but didn't exist so far.
Create a mtp_sap.c file as a counterpart of mtp_sap.h header, and move
there all primitive/SAP related code, to make it easier to spot where
the inter-layer communication happens. This way we also have the same
disposition as with sccp_sap/sccp_user.
This is a preparation commit, follow-up commits will use the
osmo_mtp_prim_name() API and clean up and move more APIs to mtp_sap.c.
Change-Id: Ifa21c26ceaa079435a2d157f99813e06cfc12e71
---
M include/osmocom/sigtran/mtp_sap.h
M src/Makefile.am
A src/mtp_sap.c
3 files changed, 66 insertions(+), 1 deletion(-)
Approvals:
daniel: Looks good to me, approved
osmith: Looks good to me, but someone else must approve
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
diff --git a/include/osmocom/sigtran/mtp_sap.h b/include/osmocom/sigtran/mtp_sap.h
index f13d6f1..590e0ab 100644
--- a/include/osmocom/sigtran/mtp_sap.h
+++ b/include/osmocom/sigtran/mtp_sap.h
@@ -30,6 +30,11 @@
OSMO_MTP_PRIM_RESUME,
OSMO_MTP_PRIM_STATUS,
};
+extern const struct value_string osmo_mtp_prim_type_names[];
+static inline const char *osmo_mtp_prim_type_name(enum osmo_mtp_prim_type val)
+{
+ return get_value_string(osmo_mtp_prim_type_names, val);
+}
/* ITU Q.704 14.2 Service information octet. See enum mtp_si_ni00 in mtp.h. */
#define MTP_SIO(service, net_ind) ((((net_ind) & 0x3) << 6) | ((service) & 0xF))
@@ -66,4 +71,4 @@
#define msgb_mtp_prim(msg) ((struct osmo_mtp_prim *)(msg)->l1h)
-char *osmo_mtp_prim_name(struct osmo_prim_hdr *oph);
+char *osmo_mtp_prim_name(const struct osmo_prim_hdr *oph);
diff --git a/src/Makefile.am b/src/Makefile.am
index 62c7e9d..de3d02e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -46,6 +46,7 @@
libosmo_sigtran_la_SOURCES = \
ipa.c \
m3ua.c \
+ mtp_sap.c \
sccp2sua.c \
sccp_connection.c \
sccp_helpers.c \
diff --git a/src/mtp_sap.c b/src/mtp_sap.c
new file mode 100644
index 0000000..b6b6eeb
--- /dev/null
+++ b/src/mtp_sap.c
@@ -0,0 +1,59 @@
+/* (C) 2025 by sysmocom s.f.m.c. GmbH <info(a)sysmocom.de>
+ * All Rights Reserved
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <errno.h>
+
+#include <osmocom/core/linuxlist.h>
+#include <osmocom/core/logging.h>
+#include <osmocom/core/talloc.h>
+#include <osmocom/core/prim.h>
+#include <osmocom/sigtran/osmo_ss7.h>
+#include <osmocom/sigtran/mtp_sap.h>
+
+const struct value_string osmo_mtp_prim_type_names[] = {
+ { OSMO_MTP_PRIM_TRANSFER, "MTP-TRANSFER" },
+ { OSMO_MTP_PRIM_PAUSE, "MTP-PAUSE" },
+ { OSMO_MTP_PRIM_RESUME, "MTP-RESUME" },
+ { OSMO_MTP_PRIM_STATUS, "MTP-STATUS" },
+ { 0, NULL }
+};
+
+static char prim_name_buf[128];
+
+static int mtp_prim_hdr_name_buf(char *buf, size_t buflen, const struct osmo_prim_hdr *oph)
+{
+ struct osmo_strbuf sb = { .buf = buf, .len = buflen };
+
+ if (!oph) {
+ OSMO_STRBUF_PRINTF(sb, "null");
+ return sb.chars_needed;
+ }
+
+ OSMO_STRBUF_PRINTF(sb, "%s.%s",
+ osmo_mtp_prim_type_name(oph->primitive),
+ osmo_prim_operation_name(oph->operation));
+ return sb.chars_needed;
+}
+
+char *osmo_mtp_prim_name(const struct osmo_prim_hdr *oph)
+{
+ mtp_prim_hdr_name_buf(prim_name_buf, sizeof(prim_name_buf), oph);
+ return prim_name_buf;
+}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41416?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ifa21c26ceaa079435a2d157f99813e06cfc12e71
Gerrit-Change-Number: 41416
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/41411?usp=email )
Change subject: mtp: Improve mtp_sap/ss7_user APIs
......................................................................
Patch Set 3:
This change is ready for review.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41411?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: If320db2bcec7ccbbc2cdac0cbf018fd8be7bde22
Gerrit-Change-Number: 41411
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 14 Nov 2025 10:46:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Attention is currently required from: jolly, laforge, matanp, neels, osmith.
fixeria has posted comments on this change by matanp. ( https://gerrit.osmocom.org/c/osmo-bsc/+/41415?usp=email )
Change subject: handover_decision: Check for connection prerequisites
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS2:
> May I merge it?
Just wait for somebody giving CR+2, after that yes, feel free to merge. I would still want @nhofmeyr@sysmocom.de, our handover voodoo, to take a look. But unfortunately he's not very active in code review nowadays...
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/41415?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I37314bdadd306ea96963d020b7c5372323e4640d
Gerrit-Change-Number: 41415
Gerrit-PatchSet: 3
Gerrit-Owner: matanp <matan1008(a)gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: matanp <matan1008(a)gmail.com>
Gerrit-Comment-Date: Fri, 14 Nov 2025 10:45:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: matanp <matan1008(a)gmail.com>