pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39489?usp=email )
Change subject: hnbgw: Submit proper L3 PDUs during CR
......................................................................
hnbgw: Submit proper L3 PDUs during CR
Generating random PDU values makes hnbgw ac ton it, since it looks up
higher layers to figure out NRI steering.
Change-Id: I725c35a3584b7d2d162c24ab2b662cfb80e539d7
Related: OS#6717
---
M hnbgw/ConnHdlr.ttcn
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/89/39489/1
diff --git a/hnbgw/ConnHdlr.ttcn b/hnbgw/ConnHdlr.ttcn
index 47c25a7..efba060 100644
--- a/hnbgw/ConnHdlr.ttcn
+++ b/hnbgw/ConnHdlr.ttcn
@@ -493,7 +493,17 @@
var octetstring nas;
if (pars.tx_sccp_cr_data_len == 0) {
- nas := f_rnd_octstring(10);
+ var octetstring tmsi := f_gen_tmsi(suffix := 0);
+ var MobileIdentityLV mi_lv := valueof(ts_MI_IMSI_LV(pars.imsi));
+ if (pars.ps_domain) {
+ var PDU_L3_MS_SGSN l3_pdu;
+ l3_pdu := valueof(ts_GMM_ATTACH_REQ(mi_lv, f_RAI('001'H, '01'H,
'2a2a'O, '17'O)));
+ nas := enc_PDU_L3_MS_SGSN(l3_pdu);
+ } else {
+ var PDU_ML3_MS_NW l3_pdu;
+ l3_pdu := valueof(ts_LU_REQ(LU_Type_IMSI_Attach, mi_lv, '00F110'O));
+ nas := enc_PDU_ML3_MS_NW(l3_pdu);
+ }
} else {
/* The test asks for an exact number of Optional Data bytes. */
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39489?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I725c35a3584b7d2d162c24ab2b662cfb80e539d7
Gerrit-Change-Number: 39489
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>