diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2023-08-31 17:47:50 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2023-09-01 17:23:25 +0200 |
commit | 3e582453f4a585ffaeb0232d31de4280962a853e (patch) | |
tree | 483195edf74a58170dcfaa12083ad134e84665de | |
parent | 68cf947ca72bf6c4a3ef92e0837cb55fdb017b20 (diff) |
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
-rw-r--r-- | library/NAS_Templates.ttcn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/library/NAS_Templates.ttcn b/library/NAS_Templates.ttcn index bbe7237c..97469d99 100644 --- a/library/NAS_Templates.ttcn +++ b/library/NAS_Templates.ttcn @@ -149,6 +149,22 @@ ts_NAS_MobileId_GUTI(hexstring mcc_mnc, OCT2 mmegi, OCT1 mmec, OCT4 tmsi) := { } } +/* 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, |