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
  • 97213 discussions
[XS] Change in libosmo-sigtran[master]: tcap_as_loadshare: fix cosmetic whitespace
by lynxis 13 Nov '26

13 Nov '26
lynxis has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44085?usp=email ) Change subject: tcap_as_loadshare: fix cosmetic whitespace ...................................................................... tcap_as_loadshare: fix cosmetic whitespace Change-Id: Ie1e374de0ccdb5c34c89b5c962b3da89e118fb8a --- M src/tcap_as_loadshare.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/85/44085/1 diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index 81fae90..4842c23 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -537,7 +537,7 @@ /* RFC3868 4.7.3.1 TCAP traffic: * "If an ASP is not available, the SG may generate (X)UDTS * "routing failure", if the return option is used." */ - /* fall-through */ + /* fall-through */ default: /* default case, asp stays NULL, will reject when returning -ENOKEY */ rc = -ENOKEY; -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44085?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: Ie1e374de0ccdb5c34c89b5c962b3da89e118fb8a Gerrit-Change-Number: 44085 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[S] Change in libosmo-sigtran[master]: tcap_as_loadshare: improve fallback rate counters
by lynxis 13 Nov '26

13 Nov '26
lynxis has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44087?usp=email ) Change subject: tcap_as_loadshare: improve fallback rate counters ...................................................................... tcap_as_loadshare: improve fallback rate counters Rename tcap:asp:fallback into tcap:fallback:handle. Add a seperate counter for every different fallback method. Related: SYS#8283 Change-Id: If471c2b53ce8ff423313cfb0b8bf3042cc194803 --- M src/ss7_as.c M src/ss7_as.h M src/tcap_as_loadshare.c 3 files changed, 21 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/87/44087/1 diff --git a/src/ss7_as.c b/src/ss7_as.c index d2b6081..6dc51d2 100644 --- a/src/ss7_as.c +++ b/src/ss7_as.c @@ -143,7 +143,10 @@ [SS7_AS_CTR_TCAP_DECODE_FAILURE] = { "tcap:decode:failure", "Number of TCAP messages which could not decoded (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS] = {"tcap:loadshare:success","Successful ASP selection for a TCAP Begin message (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_LOAD_SHARE_FAILURE] = {"tcap:loadshare:failure","Could not find a valid ASP for a TCAP Begin message (loadshare-tcap)" }, - [SS7_AS_CTR_TCAP_ASP_FALLBACK] = { "tcap:asp:fallback", "A non-starting TCAP message had to be routed by round-robin over all ASP. (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_FALLBACK_HANDLE] = { "tcap:fallback:handle", "A non-starting TCAP message (Continue, End, Abort) had to be handled by the fallback. (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_FALLBACK_ROUNDROBIN] = {"tcap:fallback:rr", "Successful fallback handling by TCAP load sharing. (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_FALLBACK_UDTS] ={ "tcap:fallback:udts", "Successful fallback handling by sending a UDTS. (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_FALLBACK_ROUTE] ={ "tcap:fallback:udts", "Successful fallback handling by sending to the fallback rount. (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_SESS_MISS] = { "tcap:session:miss", "A non-starting TCAP message (Continue, End, Abort) was missing a session entry. (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_SESS_HIT] = { "tcap:session:hit", "A non-starting TCAP message (Continue, End, Abort) hit a session entry, (loadshare-tcap)" }, #endif /* WITH_TCAP_LOADSHARING */ diff --git a/src/ss7_as.h b/src/ss7_as.h index 27c56e4..57727ab 100644 --- a/src/ss7_as.h +++ b/src/ss7_as.h @@ -70,7 +70,10 @@ SS7_AS_CTR_TCAP_DECODE_FAILURE, SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS, SS7_AS_CTR_TCAP_LOAD_SHARE_FAILURE, - SS7_AS_CTR_TCAP_ASP_FALLBACK, + SS7_AS_CTR_TCAP_FALLBACK_HANDLE, + SS7_AS_CTR_TCAP_FALLBACK_ROUNDROBIN, + SS7_AS_CTR_TCAP_FALLBACK_ROUTE, + SS7_AS_CTR_TCAP_FALLBACK_UDTS, SS7_AS_CTR_TCAP_SESS_MISS, SS7_AS_CTR_TCAP_SESS_HIT, #endif /* WITH_TCAP_LOADSHARING */ diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index bee3bfd..afd2a2d 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -507,6 +507,8 @@ OSMO_ASSERT(rasp); + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_FALLBACK_HANDLE); + switch (as->cfg.loadshare.tcap.unroutable_tcap_msg) { case SS7_AS_TCAP_UNROUTABLE_LOAD_SHARE_AS: /* RFC3868 A.3.1 Connectionless Transport: @@ -519,8 +521,10 @@ * Hence, if UNROUTABLE_LOAD_SHARE_AS is configured, allocation * policy "State sharing" at the peer is assumed. */ asp = select_asp_tcap_enabled_rr(as); - if (asp) + if (asp) { + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_FALLBACK_ROUNDROBIN); rc = 0; + } break; case SS7_AS_TCAP_UNROUTABLE_ROUTE_FALLBACK: /* RFC3868 A.2: @@ -529,14 +533,21 @@ * in-sequence-delivery is requested. However, linkset failures * may cause MTP to reroute to the other SG." */ /* No ASP selection. Try to route the SCCP msg to the fallback DPC */ + rc = asp_loadshare_tcap_route_fallback(as, mtp3_rtlb, sccp_msg); - if (!rc) /* rc == 0 would require a valid asp, use > 0 to drop the msg, but don't send an error back if needed */ + if (!rc) { + /* asp_loadshare_tcap_route_fallback() returns 0 on success, but rc = 0 would + * require a valid asp. + * Use rc > 0, so asp_loadshare_tcap_sccp() will drop further handling and free the message. */ rc = 1; + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_FALLBACK_ROUTE); + } break; case SS7_AS_TCAP_UNROUTABLE_REJECT_UDTS: /* RFC3868 4.7.3.1 TCAP traffic: * "If an ASP is not available, the SG may generate (X)UDTS * "routing failure", if the return option is used." */ + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_FALLBACK_UDTS); /* fall-through */ default: /* default case, asp stays NULL, will reject when returning -ENOKEY */ @@ -699,8 +710,6 @@ rc = -ENOKEY; goto out_free_sua; } - - rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_ASP_FALLBACK); } tcap_trans_track_entry_create(as, asp, &called_addr, &parsed.dtid, &calling_addr, &parsed.otid); @@ -733,7 +742,6 @@ rc = -ENOKEY; goto out_free_sua; } - } /* Don't create an entry for an End */ } -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44087?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: If471c2b53ce8ff423313cfb0b8bf3042cc194803 Gerrit-Change-Number: 44087 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[XS] Change in osmo-ttcn3-hacks[master]: testenv: set default titan version to 11.2.1
by fixeria 13 Nov '26

13 Nov '26
Attention is currently required from: osmith. fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44071?usp=email ) Change subject: testenv: set default titan version to 11.2.1 ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44071?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I04145bd975b464301f41fa020e6082d1feb67b61 Gerrit-Change-Number: 44071 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Comment-Date: Fri, 13 Nov 2026 21:24:59 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: stp: STP_Tests_TCAP: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close
by lynxis 13 Nov '26

13 Nov '26
Attention is currently required from: pespin. Hello pespin, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44077?usp=email to look at the new patch set (#2). Change subject: stp: STP_Tests_TCAP: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close ...................................................................... stp: STP_Tests_TCAP: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close Test if an invalid IPA TCAP routing packet closes the connection. Depends-on: Iae3d2ebce2e984db497794297696af36ca7f010b (libosmo-sigtran) Related: SYS#8286 Change-Id: I93380962905b720343e14a9a5277baa4680b5713 --- M library/IPA_EXT_TCAP_ROUTING.ttcn M stp/STP_Tests_IPA.ttcn M stp/STP_Tests_TCAP.ttcn 3 files changed, 47 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/77/44077/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44077?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I93380962905b720343e14a9a5277baa4680b5713 Gerrit-Change-Number: 44077 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: Jenkins Builder Gerrit-Attention: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: stp: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close
by lynxis 13 Nov '26

13 Nov '26
lynxis has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44077?usp=email ) Change subject: stp: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close ...................................................................... stp: add TC_tcap_loadshare_ipa_tcap_tx_invalid_close Test if an invalid packet closes the connection. Depends-on: Iae3d2ebce2e984db497794297696af36ca7f010b (libosmo-sigtran) Related: SYS#8286 Change-Id: I93380962905b720343e14a9a5277baa4680b5713 --- M library/IPA_EXT_TCAP_ROUTING.ttcn M stp/STP_Tests_IPA.ttcn M stp/STP_Tests_TCAP.ttcn 3 files changed, 47 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/77/44077/1 diff --git a/library/IPA_EXT_TCAP_ROUTING.ttcn b/library/IPA_EXT_TCAP_ROUTING.ttcn index 1779830..1d0d5d8 100644 --- a/library/IPA_EXT_TCAP_ROUTING.ttcn +++ b/library/IPA_EXT_TCAP_ROUTING.ttcn @@ -84,6 +84,15 @@ tr_IPA_EXT_TCAP_ROUTING_NACK := tr_IPA_EXT_TCAP_ROUTING_Message(IPA_EXT_TCAP_ROUTING_MSG_TID_NACK); template (value) IPA_EXT_TCAP_ROUTING_Message +ts_IPA_EXT_TCAP_ACK(template (value) uint32_t seq_nr) := { + msg_type := IPA_EXT_TCAP_ROUTING_MSG_TID_ACK, + seq_nr := seq_nr, + u := { + ack := {} + } +} + +template (value) IPA_EXT_TCAP_ROUTING_Message ts_IPA_EXT_TCAP_ROUTING_ADD_RANGE(template (value) uint32_t seq_nr, template (value) uint32_t tid_start, template (value) uint32_t tid_end, diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn index b16cb0e..0c21e81 100644 --- a/stp/STP_Tests_IPA.ttcn +++ b/stp/STP_Tests_IPA.ttcn @@ -11,6 +11,7 @@ */ friend module STP_Tests_IPA_M3UA; +friend module STP_Tests_IPA_TCAP; import from General_Types all; import from Osmocom_Types all; diff --git a/stp/STP_Tests_TCAP.ttcn b/stp/STP_Tests_TCAP.ttcn index c57e650..a28188f 100644 --- a/stp/STP_Tests_TCAP.ttcn +++ b/stp/STP_Tests_TCAP.ttcn @@ -66,6 +66,7 @@ type component TCAP_CT extends Test_CT { var SCCP_Adapter g_tcap[MAX_NUM_ASP]; port TCAP_CODEC_PT SCCP_TCAP[MAX_NUM_ASP]; + port IPA_SP_PT IPA_CTRL[MAX_NUM_ASP]; /* Port for IPA Extension TCAP_ROUTING */ port IPA_TCAP_ROUTING_PT IPA_TCAP_ROUTING[MAX_NUM_ASP]; @@ -98,6 +99,14 @@ return tcap_configs; } +private altstep as_IPA_wait_tcp_conn_closed(integer idx) runs on TCAP_CT { + var ASP_IPA_Event evt; + [] IPA_CTRL[idx].receive(tr_ASP_IPA_EV(ASP_IPA_EVENT_DOWN)) -> value evt { + log("Peer closed conn: ", evt) + } +} + + private function f_get_peer_pc_list() runs on TCAP_CT return Osmocom_Types.ro_integer { var Osmocom_Types.ro_integer peer_pc_list := {}; @@ -177,6 +186,7 @@ f_sccp_adapter_init(g_tcap[i], tcap_configs[i].cfg, "STP_TCAP_" & int2str(i)); connect(self:SCCP_TCAP[i], g_tcap[i].vc_SCCP:SCCP_SP_PORT); if (tcap_configs[i].cfg.transport == SCCP_TRANSPORT_SCCPlite) { + connect(self:IPA_CTRL[i], g_tcap[i].vc_IPA:IPA_SP_PORT); connect(self:IPA_TCAP_ROUTING[i], g_tcap[i].vc_IPA:IPA_TCAP_ROUTING_PORT); } } @@ -1085,6 +1095,23 @@ setverdict(pass); } +/* Test if transmitting an invalid PDU ( ACK) closes the connection */ +testcase TC_tcap_loadshare_ipa_tcap_tx_invalid_close() runs on TCAP_CT { + var Misc_Helpers.ro_charstring tcap_asps := { "asp-m3ua-loadshare-0-0", + "asp-m3ua-loadshare-0-1", + "asp-ipa-loadshare-0-0", + "asp-ipa-loadshare-0-1" }; + var TCAP_CT_Configurations tcap_configs := tcap_build_configs(tcap_asps); + + f_init_tcap(tcap_configs); + f_tcap_loadshare_register_new_trans(2, 0, 99, true, + 3, 100, 299, false); + + IPA_TCAP_ROUTING[3].send(ts_IPA_EXT_TCAP_ACK(3)); + as_IPA_wait_tcp_conn_closed(3); + setverdict(pass); +} + /* Register 2 TCAP loadsharing nodes. * asp-ipa-loadshare-0-0: 0 - 99, receiving new tcap transactions * asp-ipa-loadshare-0-1: 100 - 299, NOT receiving new tcap transactions @@ -1106,11 +1133,20 @@ var integer rand_tid := f_rnd_int(50); for (var integer i := 0; i < loops; i := i + 1) { var integer otid := rand_tid + i; + /* Select a DTID in the range of asp-ipa-loadshare-0-0: [0, 99] */ var integer dtid := ((rand_tid + i) mod 99); f_asp_tx_tcap_m3ua_ipa_transaction(0, 2, int2oct(otid, 4), int2oct(dtid, 4)); } + for (var integer i := loops; i < 2 * loops; i := i + 1) { + var integer otid := rand_tid + i; + /* Select a DTID in the range of asp-ipa-loadshare-0-1: [0, 99] */ + var integer dtid := ((rand_tid + i) mod 99); + + f_asp_tx_tcap_m3ua_ipa_transaction(1, 2, int2oct(otid, 4), int2oct(dtid, 4)); + } + setverdict(pass); } @@ -1216,6 +1252,7 @@ execute( TC_tcap_loadshare_ipa_tcap_new_trans_rx_loadshare() ); execute( TC_tcap_loadshare_ipa_tcap_new_trans_outgoing_transactions() ); execute( TC_tcap_loadshare_ipa_tcap_new_trans_no_ready() ); + execute( TC_tcap_loadshare_ipa_tcap_tx_invalid_close() ); execute( TC_tcap_loadshare_m3ua_to_ipa_udts() ); execute( TC_tcap_loadshare_m3ua_to_ipa_udts_routing() ); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44077?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: I93380962905b720343e14a9a5277baa4680b5713 Gerrit-Change-Number: 44077 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: stp: STP_Tests_TCAP: add TC to test the "accept new transactions" fea...
by lynxis 13 Nov '26

13 Nov '26
Attention is currently required from: pespin. lynxis has posted comments on this change by lynxis. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44005?usp=email ) Change subject: stp: STP_Tests_TCAP: add TC to test the "accept new transactions" feature ...................................................................... Patch Set 1: (1 comment) File stp/STP_Tests_TCAP.ttcn: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44005/comment/4d6da16a_7527… : PS1, Line 1111: f_asp_tx_tcap_m3ua_ipa_transaction(0, 2, int2oct(otid, 4), int2oct(dtid, 4)); > Ok, but this test is only doing an incoming test Yes, you're right. I'll also test the other m3ua. I mixed it with the ipa ASP. -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44005?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I948e95e66bdafadf01020e9e97ac50a04b78ec50 Gerrit-Change-Number: 44005 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Fri, 13 Nov 2026 20:13:08 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[S] Change in libosmo-sigtran[master]: tcap_as_loadshare: close the ASP connection when receiving an invalid...
by lynxis 13 Nov '26

13 Nov '26
lynxis has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44076?usp=email ) Change subject: tcap_as_loadshare: close the ASP connection when receiving an invalid message ...................................................................... tcap_as_loadshare: close the ASP connection when receiving an invalid message Related: SYS#8286 Change-Id: Iae3d2ebce2e984db497794297696af36ca7f010b --- M src/tcap_as_loadshare.c 1 file changed, 25 insertions(+), 13 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/76/44076/1 diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index 6a923e8..d490319 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -904,9 +904,9 @@ if (cs7_role != CS7_ROLE_SG) { LOGPASP(asp, DLTCAP, LOGL_ERROR, - "Rx unexpected OSMO IPA EXT TCAP ROUTING msg in role != CS7_ROLE_SG!\n"); + "Rx unexpected OSMO IPA EXT TCAP ROUTING msg in role != CS7_ROLE_SG! Closing connection.\n"); rc = -ENOENT; - goto out; + goto err_close; } /* in the IPA case, we assume there is a 1:1 mapping between the @@ -915,17 +915,17 @@ * know the identity of the peer */ as = ss7_asp_get_first_as(asp); if (!as) { - LOGPASP(asp, DLTCAP, LOGL_ERROR, "Rx message for IPA ASP without AS?!\n"); + LOGPASP(asp, DLTCAP, LOGL_ERROR, "Rx message for IPA ASP without AS?! Closing connection.\n"); rc = -ENOENT; - goto out; + goto err_close; } /* pull the IPA and OSMO_EXT header */ hdr = (struct ipa_tcap_routing_hdr *) msgb_data(msg); if (msgb_length(msg) < sizeof(struct ipa_tcap_routing_hdr)) { - LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message too short\n"); + LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message too short. Closing connection.\n"); rc = -EINVAL; - goto out; + goto err_close; } if (!as->cfg.loadshare.tcap.enabled || as->cfg.mode != OSMO_SS7_AS_TMOD_LOADSHARE) @@ -939,9 +939,9 @@ struct ipa_tcap_routing_add_range tcar = {}; if (msgb_length(msg) < sizeof(*hdr) + sizeof(struct ipa_tcap_routing_add_range)) { - LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message is too small\n"); + LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP Add Range message is too small\n"); rc = -EINVAL; - goto out; + goto err_close; } msgb_pull(msg, sizeof(*hdr)); @@ -981,9 +981,9 @@ } case MT_TID_ACCEPT_NEW_TRANS: if (msgb_length(msg) < sizeof(*hdr) + sizeof(struct ipa_tcap_routing_accept_new_trans)) { - LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message is too small (accept new transactions)\n"); + LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP New Transaction message is too small\n"); rc = -EINVAL; - goto out; + goto err_close; } msgb_pull(msg, sizeof(*hdr)); @@ -991,22 +991,34 @@ asp->tcap.accept_new_trans = msgb_pull_u8(msg) & 0x1; if (asp->tcap.accept_new_trans) LOGPASP(asp, DLTCAP, LOGL_INFO, - "TCAP New transaction command: ASP will receive new TCAP transactions\n"); + "TCAP New transaction message: ASP will receive new TCAP transactions\n"); else LOGPASP(asp, DLTCAP, LOGL_INFO, - "TCAP New transaction command: ASP won't receive new TCAP transactions\n"); + "TCAP New transaction message: ASP won't receive new TCAP transactions\n"); rc = ipa_tx_tcap_routing_ack(asp, osmo_ntohl(hdr->seq)); break; case MT_TID_ACK: /* shouldn't received from other end */ case MT_TID_NACK: /* shouldn't received from other end */ - default: + LOGPASP(asp, DLTCAP, LOGL_INFO, + "TCAP ACK / NACK message received, but not valid for this role. Closing connection.\n"); rc = -EINVAL; + goto err_close; + break; + default: + LOGPASP(asp, DLTCAP, LOGL_INFO, + "TCAP unknown routing message received. Closing connection.\n"); + rc = -EINVAL; + goto err_close; break; } out: return rc; + +err_close: + osmo_ss7_asp_disconnect(asp); + return rc; } /* update the short cuts contains_pc & contains_ssn */ -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44076?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: Iae3d2ebce2e984db497794297696af36ca7f010b Gerrit-Change-Number: 44076 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[M] Change in libosmo-sigtran[master]: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN
by lynxis 13 Nov '26

13 Nov '26
Attention is currently required from: pespin. Hello Jenkins Builder, pespin, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?usp=email to look at the new patch set (#4). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder Change subject: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN ...................................................................... tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN With MT_TID_ACCEPT_NEW_TRANS a TCAP loadsharing ASP can control if it receives new TCAP transactions (TCAP Begin messages). When disabled, a TCAP loadsharing ASP will still receive TCAP transaction inside their TCAP range as well transaction associated via transaction tracking. Related: SYS#8283 Change-Id: Id4e7bb022a0c8b52369f6ded2729cf6cf8679556 --- M src/ss7_asp.c M src/ss7_asp.h M src/tcap_as_loadshare.c M src/tcap_as_loadshare.h M src/tcap_as_loadshare_vty.c 5 files changed, 101 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/99/43999/4 -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?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: Id4e7bb022a0c8b52369f6ded2729cf6cf8679556 Gerrit-Change-Number: 43999 Gerrit-PatchSet: 4 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de>
1 0
0 0
[M] Change in libosmo-sigtran[master]: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN
by lynxis 13 Nov '26

13 Nov '26
Attention is currently required from: pespin. lynxis has posted comments on this change by lynxis. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?usp=email ) Change subject: tcap_as_loadshare: add TCAP IPA MT_TID_ACCEPT_NEW_TRAN ...................................................................... Patch Set 3: (5 comments) File src/tcap_as_loadshare.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999/comment/5d4e2b51_a9040… : PS2, Line 985: goto out; > What do you mean? why not sending it here? that we need to fix it for all branches which uses `goto out`. https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999/comment/1237faa9_dc2c8… : PS2, Line 990: asp->tcap.enabled = true; > I'd leave it as before and simply add a new message which can be sent before enabling it, this follo […] Done File src/tcap_as_loadshare.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999/comment/0e01f5ab_1faae… : PS3, Line 264: assoc->asp->tcap.enabled && assoc->asp->tcap.accept_new_trans) > Please put the added condition into a new line. Done https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999/comment/4b663ca4_5e81f… : PS3, Line 264: assoc->asp->tcap.enabled && assoc->asp->tcap.accept_new_trans) > Please put the added condition into a new line. Done File src/tcap_as_loadshare_vty.c: https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999/comment/99fdbaf6_d4a95… : PS3, Line 161: if (!assoc->asp->tcap.enabled || !osmo_ss7_asp_active(assoc->asp)) > it probably makes sense to also print the inactive ones and add a column which prints "ACTIVE" | "IN […] The other I found, was using Yes and No. But there can't be any inactive ASP in this table, because tcap.enabled can't be true for any inactive one -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43999?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: Id4e7bb022a0c8b52369f6ded2729cf6cf8679556 Gerrit-Change-Number: 43999 Gerrit-PatchSet: 3 Gerrit-Owner: lynxis <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Fri, 13 Nov 2026 19:37:47 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: lynxis <lynxis(a)fe80.eu>
1 0
0 0
[S] Change in osmo-hnbgw[master]: vty: Support configuring local PFCP Node ID
by pespin 13 Nov '26

13 Nov '26
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/44075?usp=email ) Change subject: vty: Support configuring local PFCP Node ID ...................................................................... vty: Support configuring local PFCP Node ID Related: SYS#7719 Depends: libosmo-pfcp.git Change-Id Ibfb53fddb618a4480d873ceb783e56c0a0e5fead Change-Id: Iaa6b0ca03f042c6d6538855559eff1353a6dc3ee --- M TODO-RELEASE M include/osmocom/hnbgw/hnbgw.h M src/osmo-hnbgw/hnbgw_pfcp.c M src/osmo-hnbgw/hnbgw_vty.c M tests/pfcp_cfg.vty.with_pfcp 5 files changed, 36 insertions(+), 11 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/75/44075/1 diff --git a/TODO-RELEASE b/TODO-RELEASE index 5e970b9..f4443e1 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -9,3 +9,4 @@ #library what description / commit summary line libosmo-sigtran >2.3.0 OSMO_SCCP_REL_REASON_NSU_* libosmo-sigtran >2.3.0 OSMO_SCCP_RETURN_REASON_*, osmo_sccp_return_reason_name() +libosmo-pfcp >0.7.0 osmo_pfcp_ie_node_id_from_str() diff --git a/include/osmocom/hnbgw/hnbgw.h b/include/osmocom/hnbgw/hnbgw.h index 36e8943..6560adf 100644 --- a/include/osmocom/hnbgw/hnbgw.h +++ b/include/osmocom/hnbgw/hnbgw.h @@ -105,6 +105,7 @@ uint16_t local_port; char *remote_addr; uint16_t remote_port; + char *node_id; struct { char *access; char *core; diff --git a/src/osmo-hnbgw/hnbgw_pfcp.c b/src/osmo-hnbgw/hnbgw_pfcp.c index 1f858e0..86efe19 100644 --- a/src/osmo-hnbgw/hnbgw_pfcp.c +++ b/src/osmo-hnbgw/hnbgw_pfcp.c @@ -163,18 +163,15 @@ } LOGP(DLPFCP, LOGL_DEBUG, "%p cfg: pfcp remote-addr %s\n", g_hnbgw, g_hnbgw->config.pfcp.remote_addr); - if (!g_hnbgw->config.pfcp.local_addr) { - LOGP(DLPFCP, LOGL_ERROR, "Configuration error: missing local PFCP address, required for Node Id\n"); - return -1; - } - cfg = (struct osmo_pfcp_endpoint_cfg){ .set_msg_ctx_cb = pfcp_set_msg_ctx, .rx_msg_cb = pfcp_rx_msg, }; /* Set up PFCP endpoint's local node id from local IP address. Parse address string into local_addr_str... */ - if (osmo_sockaddr_str_from_str(&local_addr_str, g_hnbgw->config.pfcp.local_addr, g_hnbgw->config.pfcp.local_port)) { + if (osmo_sockaddr_str_from_str(&local_addr_str, + g_hnbgw->config.pfcp.local_addr, + g_hnbgw->config.pfcp.local_port)) { LOGP(DLPFCP, LOGL_ERROR, "Error in PFCP local IP: %s\n", osmo_quote_str_c(OTC_SELECT, g_hnbgw->config.pfcp.local_addr, -1)); return -1; @@ -185,11 +182,20 @@ osmo_quote_str_c(OTC_SELECT, g_hnbgw->config.pfcp.local_addr, -1)); return -1; } - /* also store the local addr as local Node ID */ - if (osmo_pfcp_ie_node_id_from_osmo_sockaddr(&cfg.local_node_id, &cfg.local_addr)) { - LOGP(DLPFCP, LOGL_ERROR, "Error in PFCP local IP: %s\n", - osmo_quote_str_c(OTC_SELECT, g_hnbgw->config.pfcp.local_addr, -1)); - return -1; + + if (g_hnbgw->config.pfcp.node_id) { + /* Set up PFCP endpoint's Node ID from VTY config: */ + if (osmo_pfcp_ie_node_id_from_str(&cfg.local_node_id, g_hnbgw->config.pfcp.node_id)) { + LOGP(DLPFCP, LOGL_ERROR, "Error in PFCP local Node ID %s\n", + g_hnbgw->config.pfcp.node_id); + return -1; + } + } else { + if (osmo_pfcp_ie_node_id_from_osmo_sockaddr(&cfg.local_node_id, &cfg.local_addr)) { + LOGP(DLPFCP, LOGL_ERROR, "Error in PFCP local IP: %s\n", + osmo_quote_str_c(OTC_SELECT, g_hnbgw->config.pfcp.local_addr, -1)); + return -1; + } } /* Set up remote PFCP address to reach UPF at. First parse the string into upf_addr_str. */ diff --git a/src/osmo-hnbgw/hnbgw_vty.c b/src/osmo-hnbgw/hnbgw_vty.c index aec0bbe..2857e4d 100644 --- a/src/osmo-hnbgw/hnbgw_vty.c +++ b/src/osmo-hnbgw/hnbgw_vty.c @@ -1055,6 +1055,16 @@ return CMD_SUCCESS; } +DEFUN(cfg_pfcp_node_id, cfg_pfcp_node_id_cmd, + "node-id (IP_ADDR|FQDN)", + "Set the local Node ID to transmit over PFCP\n" + "IPv4 or IPv6 address\n" + "FQDN\n") +{ + osmo_talloc_replace_string(g_hnbgw, &g_hnbgw->config.pfcp.node_id, argv[0]); + return CMD_SUCCESS; +} + DEFUN(cfg_pfcp_netinst, cfg_pfcp_netinst_cmd, "netinst (access|core) NAME", "Add a Network Instance IE to all outgoing PFCP rule sets," @@ -1209,6 +1219,8 @@ vty_out(vty, " local-port %u%s", g_hnbgw->config.pfcp.local_port, VTY_NEWLINE); if (g_hnbgw->config.pfcp.remote_addr) vty_out(vty, " remote-addr %s%s", g_hnbgw->config.pfcp.remote_addr, VTY_NEWLINE); + if (g_hnbgw->config.pfcp.node_id) + vty_out(vty, " node-id %s%s", g_hnbgw->config.pfcp.node_id, VTY_NEWLINE); if (g_hnbgw->config.pfcp.netinst.access && *g_hnbgw->config.pfcp.netinst.access) vty_out(vty, " netinst access %s%s", g_hnbgw->config.pfcp.netinst.access, VTY_NEWLINE); @@ -1295,6 +1307,7 @@ install_element(PFCP_NODE, &cfg_pfcp_local_addr_cmd); install_element(PFCP_NODE, &cfg_pfcp_local_port_cmd); install_element(PFCP_NODE, &cfg_pfcp_remote_addr_cmd); + install_element(PFCP_NODE, &cfg_pfcp_node_id_cmd); install_element(PFCP_NODE, &cfg_pfcp_netinst_cmd); #endif diff --git a/tests/pfcp_cfg.vty.with_pfcp b/tests/pfcp_cfg.vty.with_pfcp index 50304f7..21a33ac 100644 --- a/tests/pfcp_cfg.vty.with_pfcp +++ b/tests/pfcp_cfg.vty.with_pfcp @@ -15,6 +15,7 @@ local-addr IP_ADDR local-port <1-65535> remote-addr IP_ADDR + node-id (IP_ADDR|FQDN) netinst (access|core) NAME OsmoHNBGW(config-hnbgw-pfcp)# local-addr? @@ -32,6 +33,9 @@ OsmoHNBGW(config-hnbgw-pfcp)# remote-addr ? IP_ADDR IP address +OsmoHNBGW(config-hnbgw-pfcp)# node-id? + node-id Set the local Node ID to transmit over PFCP + OsmoHNBGW(config-hnbgw-pfcp)# netinst? netinst Add a Network Instance IE to all outgoing PFCP rule sets, so that the UPF may choose the correct interface to open GTP tunnels on. OsmoHNBGW(config-hnbgw-pfcp)# netinst ? -- To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/44075?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-hnbgw Gerrit-Branch: master Gerrit-Change-Id: Iaa6b0ca03f042c6d6538855559eff1353a6dc3ee Gerrit-Change-Number: 44075 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • ...
  • 9722
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.