pespin has uploaded this change for review.

View Change

NAS_Templates: Allow passing old_guti and ptmsi_sig to TAU Req template

Change-Id: I5e0204e772edefc49a63b73fc4aad2fed5c14cac
---
M library/NAS_Templates.ttcn
1 file changed, 44 insertions(+), 3 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/10/35510/1
diff --git a/library/NAS_Templates.ttcn b/library/NAS_Templates.ttcn
index 7652720..23637f7 100644
--- a/library/NAS_Templates.ttcn
+++ b/library/NAS_Templates.ttcn
@@ -149,6 +149,14 @@
}
}

+template (value) EPS_MobileIdentityV
+ts_NAS_MobileId_GUTI_(template (value) GUTI guti) := {
+ typeOfIdentity := '110'B,
+ oddEvenInd_identity := {
+ guti := guti
+ }
+}
+
/* 9.9.3.12 EPS mobile identity */
template (value) EPS_MobileIdentityLV
ts_EPS_MobileId_IMSI(hexstring imsi) := {
@@ -165,6 +173,28 @@
ePS_MobileIdentity := ts_NAS_MobileId_GUTI(mcc_mnc, mmegi, mmec, tmsi)
}

+template (value) EPS_MobileIdentityLV
+ts_EPS_MobileId_GUTI_(template (value) GUTI guti) := {
+ ePS_MobileIdentity := ts_NAS_MobileId_GUTI_(guti)
+}
+
+/* 9.9.3.26 P-TMSI signature */
+template (value) P_TMSISignatureTV
+ts_PTMSI_SignatureTV(template (value) OCT3 ptmsi_sig) := {
+ elementIdentifier := '19'O,
+ valueField := ptmsi_sig
+}
+
+/* 9.9.3.45 GUTI Type */
+const BIT1 GUTI_TYPE_NATIVE := '0'B;
+const BIT1 GUTI_TYPE_MAPPED := '1'B;
+template (value) GUTI_TypeTV
+ts_GUTI_TypeTV(template (value) BIT1 guti_type) := {
+ gUTI_Type := guti_type,
+ spare := '000'B,
+ elementIdentifier := '1110'B
+}
+
template (value) PDU_NAS_EPS
ts_NAS_EMM_SecurityProtected(BIT4 sec_hdr_t, integer seq_nr, octetstring inner_nas) := {
protocolDiscriminator := c_EPS_NAS_PD_EMM,
@@ -354,7 +384,9 @@

/* 8.2.29 Tracking Area Update Request */
template (value) PDU_NAS_EPS
-ts_PDU_NAS_EPS_TrackingAreaUpdateRequest(EPS_MobileIdentityLV old_guti) := {
+ts_PDU_NAS_EPS_TrackingAreaUpdateRequest(template (value) EPS_MobileIdentityLV old_guti,
+ template (omit) P_TMSISignatureTV old_ptmsi_sig := omit,
+ template (omit) GUTI_TypeTV old_guti_type := omit) := {
protocolDiscriminator := c_EPS_NAS_PD_EMM,
ePS_messages := {
ePS_MobilityManagement := {
@@ -366,7 +398,7 @@
oldGUTI := old_guti,
nonCurrentNative_nasKeySetId := omit,
gprsCipheringKeySequenceNumber := omit,
- old_P_TMSISignature := omit,
+ old_P_TMSISignature := old_ptmsi_sig,
additionalGUTI := omit,
nonce := omit,
uENetworkCapability := omit,
@@ -382,7 +414,7 @@
supportedCodecList := omit,
additionalUpdateType := omit,
voiceDomainPrefandUEsettings := omit,
- oldGUTI_Type := omit,
+ oldGUTI_Type := old_guti_type,
deviceProperties := omit,
mS_NetworkFeatureSupport := omit,
tMSIBasedNRIContainer := omit,

To view, visit change 35510. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5e0204e772edefc49a63b73fc4aad2fed5c14cac
Gerrit-Change-Number: 35510
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange