From 5a4fa04ec4a31dfa42778d638662d3fbc8b3f2e1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 16 Feb 2018 20:59:21 +0100 Subject: sgsn: Use Random RAI when performing attach request Change-Id: Id349c7cd0899d6b87114a3ece8bc2ee625f64116 --- sgsn/SGSN_Tests.ttcn | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sgsn') diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn index cf354a76..bb97a684 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 { -- cgit v1.2.3