dexter has uploaded this change for review.

View Change

NAS_Templates: add templates for EPS_Mobile_ID_IMSI/IMEI/GUTI

We do have ts_NAS_MobileId_IMSI/IMEI/GUTI, those can not be used when
crafting EPS messages. However, we can use them to craft
ts_EPS_MobileId_IMSI/IMEI/GUTI templates.

Related: OS#5760
Change-Id: I1adf8c652530904a8e9bd988e78c995c75bb49ab
---
M library/NAS_Templates.ttcn
1 file changed, 30 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/68/34268/1
diff --git a/library/NAS_Templates.ttcn b/library/NAS_Templates.ttcn
index bbe7237..97469d9 100644
--- a/library/NAS_Templates.ttcn
+++ b/library/NAS_Templates.ttcn
@@ -149,6 +149,22 @@
}
}

+/* 9.9.3.12 EPS mobile identity */
+template (value) EPS_MobileIdentityLV
+ts_EPS_MobileId_IMSI(hexstring imsi) := {
+ ePS_MobileIdentity := ts_NAS_MobileId_IMSI(imsi)
+}
+
+template (value) EPS_MobileIdentityLV
+ts_EPS_MobileId_IMEI(hexstring imei) := {
+ ePS_MobileIdentity := ts_NAS_MobileId_IMEI(imei)
+}
+
+template (value) EPS_MobileIdentityLV
+ts_EPS_MobileId_GUTI(hexstring mcc_mnc, OCT2 mmegi, OCT1 mmec, OCT4 tmsi) := {
+ ePS_MobileIdentity := ts_NAS_MobileId_GUTI(mcc_mnc, mmegi, mmec, tmsi)
+}
+
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,

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1adf8c652530904a8e9bd988e78c995c75bb49ab
Gerrit-Change-Number: 34268
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier@sysmocom.de>
Gerrit-MessageType: newchange