summaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-16 21:54:21 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-18 10:23:33 +0100
commit1967d47ea16db55c8214bf8d963fddb4cf37af74 (patch)
tree57f8d19d20aa6814814ca534942a58a9cff3d3e4 /sgsn
parent3823e2ea77beb5b4c5e3fe668c7ec2b81cf19007 (diff)
sgsn: Ensure ATTACH is always only for GPRS, not combined
OsmoSGSN doesn't do combined GPRS+IMSI Attach. Change-Id: Ib11f5d720a0e4e1d574982d1f33ba9aaa6b3a3cf
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn16
1 files changed, 8 insertions, 8 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index d667482..c147b84 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -282,7 +282,7 @@ private function f_TC_attach(charstring id) runs on BSSGP_ConnHdlr {
GSUP.receive(tr_GSUP_ISD_RES(g_pars.imsi));
GSUP.send(ts_GSUP_UL_RES(g_pars.imsi));
- BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_ACCEPT(?, ?, ?)));
+ BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?)));
BSSGP.send(ts_GMM_ATTACH_COMPL);
setverdict(pass);
}
@@ -308,14 +308,14 @@ private function f_TC_attach_auth_id_timeout(charstring id) runs on BSSGP_ConnHd
BSSGP.send(ts_GMM_ATTACH_REQ(mi, old_ra, false, false, omit, omit));
alt {
- [] BSSGP.receive(tr_BD_L3(tr_GMM_ID_REQ(?))) {
+ [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_ID_REQ(?))) {
/* don't send ID Response */
repeat;
}
- [] BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_REJECT('09'O))) {
+ [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_REJECT('09'O))) {
setverdict(pass);
}
- [] BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_REJECT(?))) {
+ [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_REJECT(?))) {
setverdict(fail, "Wrong Attach Reject Cause");
}
}
@@ -344,7 +344,7 @@ private function f_TC_attach_auth_sai_timeout(charstring id) runs on BSSGP_ConnH
[] GSUP.receive(tr_GSUP_SAI_REQ(g_pars.imsi)); { }
}
/* don't send SAI-response from HLR */
- BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_REJECT(?)));
+ BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_REJECT(?)));
setverdict(pass);
}
testcase TC_attach_auth_sai_timeout() runs on test_CT {
@@ -371,10 +371,10 @@ private function f_TC_attach_gsup_lu_timeout(charstring id) runs on BSSGP_ConnHd
GSUP.receive(tr_GSUP_UL_REQ(g_pars.imsi));
/* Never follow-up with ISD_REQ or UL_RES */
alt {
- [] BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_REJECT(?))) {
+ [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_REJECT(?))) {
setverdict(pass);
}
- [] BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_ACCEPT(?, ?, ?))) {
+ [] BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?))) {
setverdict(fail);
}
}
@@ -406,7 +406,7 @@ private function f_TC_attach_combined(charstring id) runs on BSSGP_ConnHdlr {
GSUP.receive(tr_GSUP_ISD_RES(g_pars.imsi));
GSUP.send(ts_GSUP_UL_RES(g_pars.imsi));
- BSSGP.receive(tr_BD_L3(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?)));
+ BSSGP.receive(tr_BD_L3_MT(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?)));
BSSGP.send(ts_GMM_ATTACH_COMPL);
setverdict(pass);
}