Attention is currently required from: pespin.
fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42550?usp=email )
Change subject: stp: m3ua: Introduce test TC_adm_block_after_act
......................................................................
Patch Set 2:
(1 comment)
File stp/STP_Tests_M3UA.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42550/comment/28e8b86b_1423… :
PS2, Line 684: TC_adm_block_after_act
You're missing to add this one to the `control` section below.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42550?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: I18672d228c1d15ef99039bccbb972e0b2496b545
Gerrit-Change-Number: 42550
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 01 Apr 2026 11:17:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42572?usp=email )
Change subject: cosmetic: xua_asp_fsm: Fix wrong indentation
......................................................................
cosmetic: xua_asp_fsm: Fix wrong indentation
Change-Id: I21c13ff7bc67c060e739eae38088ac00700680de
---
M src/xua_asp_fsm.c
1 file changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/72/42572/1
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index bb163a0..39d121f 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -918,12 +918,12 @@
}
if (asp->cfg.role == OSMO_SS7_ASP_ROLE_SG) {
/* RFC4666 4.3.4.4: Transmit unsolicited ASPIA ACK no tnotify peer.
- * "If the ASP receives an ASP Inactive Ack without having sent an
- * ASP Inactive message, the ASP should now consider itself to be
- * in the ASP-INACTIVE state. If the ASP was previously in the
- * ASP-ACTIVE state, the ASP should then initiate procedures to
- * return itself to its previous state."
- */
+ * "If the ASP receives an ASP Inactive Ack without having sent an
+ * ASP Inactive message, the ASP should now consider itself to be
+ * in the ASP-INACTIVE state. If the ASP was previously in the
+ * ASP-ACTIVE state, the ASP should then initiate procedures to
+ * return itself to its previous state."
+ */
xua_asp_tx_unsolicited_aspia_ack(asp);
/* transition state and inform layer manager */
osmo_fsm_inst_state_chg(fi, XUA_ASP_S_INACTIVE, 0, 0);
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42572?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: I21c13ff7bc67c060e739eae38088ac00700680de
Gerrit-Change-Number: 42572
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42573?usp=email )
Change subject: Support administrative block in role ASP
......................................................................
Support administrative block in role ASP
Change-Id: If32902575e874d2acc9a5fc12509af42ed151739
---
M src/ss7_asp_vty.c
M src/xua_default_lm_fsm.c
2 files changed, 17 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/73/42573/1
diff --git a/src/ss7_asp_vty.c b/src/ss7_asp_vty.c
index e3c82fe..89fb949 100644
--- a/src/ss7_asp_vty.c
+++ b/src/ss7_asp_vty.c
@@ -714,11 +714,6 @@
return CMD_WARNING;
}
- if (asp->cfg.role == OSMO_SS7_ASP_ROLE_ASP) {
- vty_out(vty, "%% 'block' not yet implemented in 'role asp'%s", VTY_NEWLINE);
- return CMD_WARNING;
- }
-
ss7_asp_set_blocked(asp, true);
return CMD_SUCCESS;
}
diff --git a/src/xua_default_lm_fsm.c b/src/xua_default_lm_fsm.c
index f9f5cd4..773d6f2 100644
--- a/src/xua_default_lm_fsm.c
+++ b/src/xua_default_lm_fsm.c
@@ -199,6 +199,10 @@
static bool asp_act_needed(const struct osmo_ss7_asp *asp)
{
+ /* Avoid activating if ASP is adminsitratively blocked locally: */
+ if (asp->cfg.adm_state.blocked)
+ return false;
+
/* Don't change active ASP if there's already one active in the AS. */
if (ss7_asp_determine_traf_mode(asp) == OSMO_SS7_AS_TMOD_OVERRIDE) {
struct ss7_as_asp_assoc *assoc;
@@ -210,6 +214,13 @@
return true;
}
+static void submit_m_asp_active_req_if_needed(struct osmo_ss7_asp *asp)
+{
+ if (!asp_act_needed(asp))
+ return;
+ xlm_sap_down_simple(asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
+}
+
static void lm_idle(struct osmo_fsm_inst *fi, uint32_t event, void *data)
{
switch (event) {
@@ -342,10 +353,8 @@
struct xua_layer_manager_default_priv *lmp = fi->priv;
if (lmp->asp->cfg.role == OSMO_SS7_ASP_ROLE_ASP ||
- lmp->asp->cfg.role == OSMO_SS7_ASP_ROLE_IPSP) {
- if (asp_act_needed(lmp->asp))
- xlm_sap_down_simple(lmp->asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
- }
+ lmp->asp->cfg.role == OSMO_SS7_ASP_ROLE_IPSP)
+ submit_m_asp_active_req_if_needed(lmp->asp);
}
static void lm_inactive(struct osmo_fsm_inst *fi, uint32_t event, void *data)
@@ -366,16 +375,14 @@
break;
case LM_E_AS_INACTIVE_IND:
/* request the ASP to go into active state if needed */
- if (asp_act_needed(lmp->asp))
- xlm_sap_down_simple(lmp->asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
+ submit_m_asp_active_req_if_needed(lmp->asp);
break;
case LM_E_NOTIFY_IND:
ENSURE_ASP_OR_IPSP(fi, event);
OSMO_ASSERT(oxp->oph.primitive == OSMO_XLM_PRIM_M_NOTIFY);
OSMO_ASSERT(oxp->oph.operation == PRIM_OP_INDICATION);
/* request the ASP to go into active state if needed */
- if (asp_act_needed(lmp->asp))
- xlm_sap_down_simple(lmp->asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
+ submit_m_asp_active_req_if_needed(lmp->asp);
break;
case LM_E_ERROR_IND:
ENSURE_ASP_OR_IPSP(fi, event);
@@ -409,7 +416,7 @@
* peer's ASP became administratively blocked.
* Try to re-activate, if peer's ASP is indeed blocked we'll probably receive an
* ERR msg and continue from there in the case LM_E_ERROR_IND below. */
- xlm_sap_down_simple(lmp->asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
+ submit_m_asp_active_req_if_needed(lmp->asp);
break;
case LM_E_ASP_INACT_IND:
ENSURE_SG_OR_IPSP(fi, event);
@@ -417,7 +424,7 @@
break;
case LM_E_AS_INACTIVE_IND:
/* request the ASP to go into active state */
- xlm_sap_down_simple(lmp->asp, OSMO_XLM_PRIM_M_ASP_ACTIVE, PRIM_OP_REQUEST);
+ submit_m_asp_active_req_if_needed(lmp->asp);
break;
case LM_E_NOTIFY_IND:
ENSURE_ASP_OR_IPSP(fi, event);
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42573?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: If32902575e874d2acc9a5fc12509af42ed151739
Gerrit-Change-Number: 42573
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>