From 153d2387dc21f6c5cc5b5ecfd1dfaf9843fdc3bd Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 16 Jun 2020 01:00:24 +0200 Subject: as_Tguard: only respond to RESET with matching PC Change-Id: I29a141c2cda6c9240ef06a8ba27f5abf597e70eb --- bsc/BSC_Tests.ttcn | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 5fb7d0e7..474b8622 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; } } -- cgit v1.2.3