aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-10-12 18:04:12 +0000
committerNeels Hofmeyr <neels@hofmeyr.de>2020-10-12 18:28:20 +0000
commitb2b3704d2a0289332798ba4aeff5b8e29d297ee5 (patch)
treed12123c9cc9df56f18c7590421001314260bc8bb
parenta7326888e8bf2bf6dcaeb6211aacb3543cf9dfec (diff)
BSSAP_LE_Emulation: configure sending vs receiving RESET
Expecting OsmoBSC to send a RESET to the SMLC implies that the virtual SMLC stays quiet until a RESET is received. Add flag to configure RESET behavior of BSSMAP-LE. Change-Id: I49a749b037b614f922044165a4357fe20b68860b
-rw-r--r--library/BSSAP_LE_Emulation.ttcn8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/BSSAP_LE_Emulation.ttcn b/library/BSSAP_LE_Emulation.ttcn
index 294ac62d..4965856f 100644
--- a/library/BSSAP_LE_Emulation.ttcn
+++ b/library/BSSAP_LE_Emulation.ttcn
@@ -339,7 +339,8 @@ type record BssapLeOps {
boolean role_ms,
/* needed for performing BSSMAP RESET */
SCCP_PAR_Address sccp_addr_local optional,
- SCCP_PAR_Address sccp_addr_peer optional
+ SCCP_PAR_Address sccp_addr_peer optional,
+ boolean send_reset
}
private altstep as_reset_ack() runs on BSSAP_LE_Emulation_CT {
@@ -501,7 +502,8 @@ function main(BssapLeOps ops, charstring id) runs on BSSAP_LE_Emulation_CT {
f_conn_table_init();
f_expect_table_init();
- if (isvalue(ops.sccp_addr_peer) and isvalue(ops.sccp_addr_local)) {
+ if (g_ran_ops.send_reset
+ and isvalue(ops.sccp_addr_peer) and isvalue(ops.sccp_addr_local)) {
f_sleep(1.0); /* HACK to wait for M3UA/ASP to be ACTIVE */
f_bssap_le_reset(ops.sccp_addr_peer, ops.sccp_addr_local);
}
@@ -517,6 +519,8 @@ function main(BssapLeOps ops, charstring id) runs on BSSAP_LE_Emulation_CT {
var integer targetPointCode;
alt {
+ [not g_ran_ops.send_reset] as_reset_ack();
+
[] as_main_bssap_le();
[g_ran_ops.role_ms] CLIENT.receive(PDU_DTAP_MO:?) -> value dtap_mo sender vc_conn {