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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15398
Change subject: sgsn: implement commonid as alt_step
......................................................................
sgsn: implement commonid as alt_step
Change-Id: I3d4d0aa83c0365969039613d7539d0e7d816afa7
---
M sgsn/SGSN_Tests.ttcn
1 file changed, 17 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/98/15398/1
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index d210182..e4a5cbf 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -546,6 +546,12 @@
}
}
+altstep as_ranap_common_id(integer gb_idx) runs on BSSGP_ConnHdlr {
+ [gb_idx >= NUM_GB] BSSAP.receive(tr_RANAP_CommonId(imsi_hex2oct(g_pars.imsi))) {
+ repeat;
+ }
+}
+
altstep as_mm_identity(integer gb_idx := 0) runs on BSSGP_ConnHdlr {
var MobileL3_CommonIE_Types.MobileIdentityLV mi;
[is_gb(gb_idx)] BSSGP[gb_idx].receive(tr_GMM_ID_REQ('001'B)) {
@@ -591,6 +597,7 @@
var PDU_L3_MS_SGSN l3_mo;
var PDU_L3_SGSN_MS l3_mt;
var default di := activate(as_mm_identity(gb_idx));
+ var default commonid := activate(as_ranap_common_id(gb_idx));
if (g_pars.net.expect_auth) {
var GSUP_IE auth_tuple;
var template AuthenticationParameterAUTNTLV autn;
@@ -655,7 +662,9 @@
key_sts := ?)) {
var IntegrityProtectionAlgorithm uia_chosen := 0; /*standard_UMTS_integrity_algorithm_UIA1;*/
BSSAP.send(ts_RANAP_SecurityModeComplete(uia_chosen));
- //BSSAP.receive(tr_RANAP_CommonId(imsi_hex2oct(g_pars.imsi)));
+
+ /* allow to common id to be received */
+ f_sleep(1.0);
}
}
} else {
@@ -663,6 +672,7 @@
f_sleep(1.0);
}
+ deactivate(commonid);
deactivate(di);
}
@@ -2359,6 +2369,7 @@
var PDU_L3_SGSN_MS l3_mt;
var PDU_DTAP_PS_MT mt;
var template OCT4 p_tmsi := omit;
+ var default commonid := activate(as_ranap_common_id(bssgp));
if (send_ptmsi) {
p_tmsi := g_pars.p_tmsi;
@@ -2390,11 +2401,15 @@
key_sts := ?)) {
var IntegrityProtectionAlgorithm uia_chosen := 0; /*standard_UMTS_integrity_algorithm_UIA1;*/
BSSAP.send(ts_RANAP_SecurityModeComplete(uia_chosen));
- //BSSAP.receive(tr_RANAP_CommonId(imsi_hex2oct(g_pars.imsi)));
+
+ /* allow to common id to be received */
+ f_sleep(1.0);
}
[is_gb(bssgp)] BSSGP[bssgp].receive { repeat; }
[is_iu(bssgp)] BSSAP.receive { repeat; }
}
+
+ deactivate(commonid);
}
private function f_TC_attach_rau_a_a(charstring id) runs on BSSGP_ConnHdlr {
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15398
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I3d4d0aa83c0365969039613d7539d0e7d816afa7
Gerrit-Change-Number: 15398
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190903/715f735b/attachment.htm>