This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/6555 sgsn: Add TC_rau_unknown Change-Id: If33fc690cedcc362c3cd5d7c1951440ecba328c2 --- M library/L3_Templates.ttcn M sgsn/SGSN_Tests.ttcn 2 files changed, 54 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/6555/1 diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn index 396a361..b37ee25 100644 --- a/library/L3_Templates.ttcn +++ b/library/L3_Templates.ttcn @@ -1471,6 +1471,7 @@ mSNetworkCapability := omit, pdpContextStatus := omit, /* TODO */ pC_LCSCapability := omit, + mBMS_ContextStatus := omit, uENetworkCapability := omit, additionalMobileIdentity := omit, oldRoutingAreaIdentification2 := omit, @@ -1492,6 +1493,28 @@ } } +template PDU_L3_SGSN_MS tr_GMM_RAU_REJECT(template OCT1 cause := ?) := { + discriminator := '1000'B, + tiOrSkip := { + skipIndicator := '0000'B + }, + msgs := { + gprs_mm := { + routingAreaUpdateReject := { + messageType := '00001011'B, + gmmCause := { + causeValue := cause + }, + forceToStandby := ?, + spare := '0000'B, + t3302 := *, + t3346 := * + } + } + } +} + + template (value) PDU_L3_MS_SGSN ts_GMM_RAU_COMPL := { discriminator := '0000'B, /* overwritten */ tiOrSkip := { diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn index 2d21f48..adb018b 100644 --- a/sgsn/SGSN_Tests.ttcn +++ b/sgsn/SGSN_Tests.ttcn @@ -308,6 +308,7 @@ GSUP.send(ts_GSUP_UL_RES(g_pars.imsi)); BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?))); + /* FIXME: Extract P-TMSI, if any. Only send Complete if necessary */ BSSGP.send(ts_GMM_ATTACH_COMPL); setverdict(pass); } @@ -512,6 +513,35 @@ vc_conn.done; } +/* Routing Area Update from Unknown TLLI -> REJECT */ +private function f_TC_rau_unknown(charstring id) runs on BSSGP_ConnHdlr { + var MobileIdentityLV mi; + var RoutingAreaIdentificationV old_ra := f_random_RAI(); + + if (ispresent(g_pars.p_tmsi)) { + mi := valueof(ts_MI_TMSI_LV(g_pars.p_tmsi)); + } else { + mi := valueof(ts_MI_IMSI_LV(g_pars.imsi)); + } + + BSSGP.send(ts_GMM_RAU_REQ(mi, GPRS_UPD_T_RA, old_ra, false, omit, omit)); + alt { + [] BSSGP.receive(tr_BD_L3(tr_GMM_RAU_REJECT('0a'O))) { + setverdict(pass); + } + /* FIXME: Expect XID RESET? */ + [] BSSGP.receive { repeat; } + } +} +testcase TC_rau_unknown() runs on test_CT { + var BSSGP_ConnHdlr vc_conn; + f_init(); + f_sleep(1.0); + vc_conn := f_start_handler(refers(f_TC_rau_unknown), testcasename(), g_gb[0], 9); + vc_conn.done; +} + + control { @@ -522,6 +552,7 @@ execute( TC_attach_combined() ); execute( TC_attach_accept_all() ); execute( TC_attach_closed() ); + execute( TC_rau_unknown() ); } -- To view, visit https://gerrit.osmocom.org/6555 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If33fc690cedcc362c3cd5d7c1951440ecba328c2 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>