summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-06-16 01:00:24 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-06-30 05:29:29 +0200
commit153d2387dc21f6c5cc5b5ecfd1dfaf9843fdc3bd (patch)
tree65e603f9519b8a3243e0bcdb5d61c7298fb28f4d
parentaad434cef0367a16a533973215bdff13368916a3 (diff)
as_Tguard: only respond to RESET with matching PC
-rw-r--r--bsc/BSC_Tests.ttcn9
1 files changed, 7 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 5fb7d0e..474b862 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -441,8 +441,13 @@ altstep as_Tguard() runs on test_CT {
}
/* always respond with RESET ACK to RESET */
[] BSSAP.receive(tr_BSSAP_UNITDATA_ind(?, ?, tr_BSSMAP_Reset(g_osmux_enabled))) -> value ud_ind {
- BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,
- ts_BSSMAP_ResetAck(g_osmux_enabled)));
+ /* respond only when a g_bssap with that point-code has been initialized. */
+ for (var integer i := 0; i < NUM_MSC; i := i + 1) {
+ if (ud_ind.calledAddress == g_bssap[i].sccp_addr_own) {
+ BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,
+ ts_BSSMAP_ResetAck(g_osmux_enabled)));
+ }
+ }
repeat;
}
}