Revert "as_Tguard: only respond to RESET with matching PC"

This reverts commit 9e64e8db8367ccd551305e8c0396944a9d044563.
This commit is contained in:
Neels Hofmeyr 2020-06-24 00:37:03 +02:00
parent 082fc87737
commit 0d7fae912c
1 changed files with 2 additions and 7 deletions

View File

@ -441,13 +441,8 @@ 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 {
/* 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)));
}
}
BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,
ts_BSSMAP_ResetAck(g_osmux_enabled)));
repeat;
}
}