summaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-16 20:59:21 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-18 10:18:14 +0100
commit5a4fa04ec4a31dfa42778d638662d3fbc8b3f2e1 (patch)
tree0e64a06d895c11736f2e87d07587f1e20bb970ac /sgsn
parent14a0f948815a303844204b5fcc824246fc001072 (diff)
sgsn: Use Random RAI when performing attach request
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn13
1 files changed, 6 insertions, 7 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index cf354a7..bb97a68 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -247,9 +247,13 @@ function f_gmm_auth () runs on BSSGP_ConnHdlr {
deactivate(di);
}
+function f_random_RAI(HEX0_3n mcc := '262'H, HEX0_3n mnc := '42'H) return RoutingAreaIdentificationV {
+ return f_RAI(mcc, mnc, f_rnd_octstring(2), f_rnd_octstring(1));
+}
+
private function f_TC_attach(charstring id) runs on BSSGP_ConnHdlr {
var MobileIdentityLV mi;
- var RoutingAreaIdentificationV old_ra := { '2'H, '6'H, '2'H, 'F'H, '4'H, '2'H, '2342'O, '00'O };
+ var RoutingAreaIdentificationV old_ra := f_random_RAI();
if (ispresent(g_pars.p_tmsi)) {
mi := valueof(ts_MI_TMSI_LV(g_pars.p_tmsi));
@@ -267,12 +271,7 @@ private function f_TC_attach(charstring id) runs on BSSGP_ConnHdlr {
BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_ACCEPT(?, ?, ?)));
BSSGP.send(ts_GMM_ATTACH_COMPL);
-/*
- alt {
- [] as_mm_identity();
- }
-*/
- f_sleep(5.0);
+ setverdict(pass);
}
testcase TC_attach() runs on test_CT {