Attention is currently required from: laforge.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/41410?usp=email )
Change subject: mtp: Support MTP-TRANSFER.req/ind of raw IPA messages
......................................................................
Patch Set 6:
This change is ready for review.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41410?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: I9fedb26ccd3434fc7f272feb3c45cf4bdb80c7ae
Gerrit-Change-Number: 41410
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 14 Nov 2025 18:24:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/41432?usp=email )
Change subject: ipa: Adapt handling logic of rx msg from osmo_ipa_segmentation_cb()
......................................................................
ipa: Adapt handling logic of rx msg from osmo_ipa_segmentation_cb()
We migrated to using osmo_io+osmo_stream with
osmo_ipa_segmentation_cb(), which takes care of pulling the multiple IPA
headers and stores them in osmo_ipa_msgb_cb_proto(_ext)().
When doing the change, we forgot to update the rx path in ipa.c to
account for those changes. Do it now to simplify the code and clarify
that l1h was actually pulled from ->data.
Change-Id: I4e26bf471de9a258dc2f862488253f31aa95a013
---
M src/ipa.c
1 file changed, 7 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/32/41432/1
diff --git a/src/ipa.c b/src/ipa.c
index c748f22..4c197ff 100644
--- a/src/ipa.c
+++ b/src/ipa.c
@@ -246,9 +246,6 @@
OSMO_ASSERT(sls <= 0xf);
rate_ctr_inc2(as->ctrg, SS7_AS_CTR_RX_MSU_SLS_0 + sls);
- /* pull the IPA header */
- msgb_pull_to_l2(msg);
-
/* We have received an IPA-encapsulated SCCP message, without
* any MTP routing label. Furthermore, the SCCP Called/Calling
* Party are SSN-only, with no GT or PC. This means we have no
@@ -311,10 +308,10 @@
LOGPASP(asp, DLSS7, LOGL_ERROR, "Unable to patch PC into SCCP message; dropping\n");
return -1;
}
- xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg_patched), msgb_l2len(msg_patched));
+ xua = m3ua_xfer_from_data(&data_hdr, msgb_data(msg_patched), msgb_length(msg_patched));
msgb_free(msg_patched);
} else {
- xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg), msgb_l2len(msg));
+ xua = m3ua_xfer_from_data(&data_hdr, msgb_data(msg), msgb_length(msg));
}
/* Update xua->mtp with values from data_hdr */
@@ -333,16 +330,15 @@
* \returns 0 on success; negative on error */
int ipa_rx_msg(struct osmo_ss7_asp *asp, struct msgb *msg, uint8_t sls)
{
- struct ipaccess_head *hh;
int rc;
OSMO_ASSERT(asp->cfg.proto == OSMO_SS7_ASP_PROT_IPA);
- /* osmo_ipa_process_msg() will already have verified length
- * consistency and set up l2h pointer */
- hh = (struct ipaccess_head *) msg->l1h;
+ /* Here IPA headers have already been validated and were stored in
+ * osmo_ipa_msgb_cb_proto(_ext)(), and msgb_data() and msgb_l2() both
+ * point to IPA payload. */
- switch (hh->proto) {
+ switch (osmo_ipa_msgb_cb_proto(msg)) {
case IPAC_PROTO_IPACCESS:
rc = ipa_rx_msg_ccm(asp, msg);
break;
@@ -350,7 +346,7 @@
rc = ipa_rx_msg_sccp(asp, msg, sls);
break;
default:
- rc = ss7_asp_rx_unknown(asp, hh->proto, msg);
+ rc = ss7_asp_rx_unknown(asp, osmo_ipa_msgb_cb_proto(msg), msg);
}
return rc;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41432?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I4e26bf471de9a258dc2f862488253f31aa95a013
Gerrit-Change-Number: 41432
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: pespin.
Hello Jenkins Builder, laforge, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-sigtran/+/41429?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: mtp: Introduce osmo_ss7_user_find_by_si() public API
......................................................................
mtp: Introduce osmo_ss7_user_find_by_si() public API
This is needed by mtp_sap/ss7_user API users to figure out whether
there's a user set up already for a given Service Indicator.
Change-Id: I7db659dc443148f3aab70d2c6229c2271346cf38
---
M TODO-RELEASE
M include/osmocom/sigtran/osmo_ss7.h
M src/ss7_hmrt.c
M src/ss7_user.c
M src/ss7_user.h
M src/xua_snm.c
6 files changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/29/41429/3
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41429?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I7db659dc443148f3aab70d2c6229c2271346cf38
Gerrit-Change-Number: 41429
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Attention is currently required from: pespin.
osmith 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 4: Code-Review+1
(1 comment)
File TODO-RELEASE:
https://gerrit.osmocom.org/c/libosmo-sigtran/+/41411/comment/22820a6b_62a07… :
PS3, Line 13: libosmo-sigtran add osmo_ss7_user_mtp_sap_prim_down()
> I'm pretty sure they were unused, so imho no need to pollute here even more.
Acknowledged
--
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: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 14 Nov 2025 13:51:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>