RSL_Emulation: Initialize the ConnectionTable
By default all the elements in the conn table seem to be considered <unbound>. f_cid_create() manages to set ra, ra_fn and comp_ref in the ConnectionData element, but checking for ispresent(ConnectionTable[i].ra) still returns false while log(ConnectionTable[i].ra) returns 23. Setting every optional element to omit as f_cid_clear() does before using the connection table seems to solve this issue. The assignment_fr_* tests now continue after receiving the Immediate Assignment, but still fail after receiving the CM Service Request. Change-Id: I24205425c5b6ae5b8a0f6288ba89ea5a1dc4669d
This commit is contained in:
parent
818b6e4225
commit
17f970fc65
|
@ -214,6 +214,8 @@ function main() runs on RSL_Emulation_CT {
|
|||
var integer cid;
|
||||
var integer i;
|
||||
|
||||
f_conn_table_init();
|
||||
|
||||
while (true) {
|
||||
alt {
|
||||
[] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) {
|
||||
|
@ -315,5 +317,14 @@ function main() runs on RSL_Emulation_CT {
|
|||
}
|
||||
}
|
||||
|
||||
private function f_conn_table_init()
|
||||
runs on RSL_Emulation_CT {
|
||||
var integer i;
|
||||
|
||||
/* Initialize the ConnectionTable */
|
||||
for (i := 0; i < sizeof(ConnectionTable); i := i+1) {
|
||||
f_cid_clear(i);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue