2012-01-22 12:36:52 +00:00
|
|
|
Testing generation of GSM0808 messages
|
|
|
|
Testing creating Layer3
|
2017-03-27 14:55:32 +00:00
|
|
|
Testing creating Layer3 (AoIP)
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Reset
|
2017-04-05 15:55:27 +00:00
|
|
|
Testing creating Reset Ack
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Clear Command
|
|
|
|
Testing creating Clear Complete
|
2017-03-29 13:50:05 +00:00
|
|
|
Testing creating Chipher Mode Command
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Cipher Complete
|
|
|
|
Testing creating Cipher Reject
|
|
|
|
Testing creating CM U
|
|
|
|
Testing creating SAPI Reject
|
2017-03-29 15:53:43 +00:00
|
|
|
Testing creating Assignment Request
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Assignment Complete
|
2017-03-27 14:55:32 +00:00
|
|
|
Testing creating Assignment Complete (AoIP)
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Assignment Failure
|
2017-03-27 14:55:32 +00:00
|
|
|
Testing creating Assignment Failure (AoIP)
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating Clear Request
|
2017-03-29 15:37:55 +00:00
|
|
|
Testing creating Paging Request
|
2012-01-22 12:36:52 +00:00
|
|
|
Testing creating DTAP
|
|
|
|
Testing prepend DTAP
|
2018-03-23 00:46:42 +00:00
|
|
|
------- test_cell_id_list_add
|
|
|
|
cell_id_list cgi[0] = {
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &lac1) --> rc = 1
|
|
|
|
cell_id_list lac[1] = {
|
|
|
|
0: 123
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &lac1) --> rc = 0
|
|
|
|
cell_id_list lac[1] = {
|
|
|
|
0: 123
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &lac2) --> rc = 2
|
|
|
|
cell_id_list lac[3] = {
|
|
|
|
0: 123
|
|
|
|
1: 456
|
|
|
|
2: 789
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &lac2) --> rc = 0
|
|
|
|
cell_id_list lac[3] = {
|
|
|
|
0: 123
|
|
|
|
1: 456
|
|
|
|
2: 789
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cil) --> rc = 0
|
|
|
|
cell_id_list lac[3] = {
|
|
|
|
0: 123
|
|
|
|
1: 456
|
|
|
|
2: 789
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = -22
|
|
|
|
cell_id_list lac[3] = {
|
|
|
|
0: 123
|
|
|
|
1: 456
|
|
|
|
2: 789
|
|
|
|
}
|
|
|
|
|
|
|
|
can't add to BSS list
|
|
|
|
cell_id_list bss[0]
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &lac1) --> rc = -22
|
|
|
|
cell_id_list bss[0]
|
|
|
|
|
|
|
|
other types (including NO_CELL) take on new type iff empty
|
|
|
|
cell_id_list no_cell[0]
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = 1
|
|
|
|
cell_id_list cgi[1] = {
|
|
|
|
0: 001-02-3-4
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi1) --> rc = 0
|
|
|
|
cell_id_list cgi[1] = {
|
|
|
|
0: 001-02-3-4
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi2) --> rc = 2
|
|
|
|
cell_id_list cgi[3] = {
|
|
|
|
0: 001-02-3-4
|
|
|
|
1: 001-002-3-4
|
|
|
|
2: 005-006-7-8
|
|
|
|
}
|
|
|
|
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi2) --> rc = 0
|
|
|
|
cell_id_list cgi[3] = {
|
|
|
|
0: 001-02-3-4
|
|
|
|
1: 001-002-3-4
|
|
|
|
2: 005-006-7-8
|
|
|
|
}
|
|
|
|
|
|
|
|
cil.id_list_len = 126
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi2a) --> rc = 1
|
|
|
|
cil.id_list_len = 127
|
|
|
|
|
|
|
|
cil.id_list_len = 126
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi3) --> rc = -28
|
|
|
|
cil.id_list_len = 127
|
|
|
|
gsm0808_cell_id_list_add(&cil, &cgi2a) --> rc = -28
|
|
|
|
cil.id_list_len = 127
|
|
|
|
------- test_cell_id_list_add done
|
2012-01-22 12:36:52 +00:00
|
|
|
Done
|