lynxis lazus has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38918?usp=email )
Change subject: L3_Templates: Add required TLVs for RA Request when moving from 4G to 2G
......................................................................
L3_Templates: Add required TLVs for RA Request when moving from 4G to 2G
Add ts_PtmsiTypeTV and ts_RoutingAreaIdentification2TLV
Change-Id: I6d735be76aab0b5228502e3e19804bcc98864829
---
M library/L3_Templates.ttcn
1 file changed, 33 insertions(+), 0 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
daniel: Looks good to me, approved
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index 6b7baae..181fde4 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -2935,6 +2935,39 @@
}
}
+
+const BIT1 c_GMM_PMTSI_TYPE_NATIVE := '0'B;
+const BIT1 c_GMM_PMTSI_TYPE_MAPPED := '1'B;
+
+function ts_PtmsiTypeTV(template (omit) BIT1 val) return template (omit) P_TMSI_TypeTV {
+ var template (omit) P_TMSI_TypeTV ret;
+ if (istemplatekind(val, "omit")) {
+ return omit;
+ } else {
+ ret := {
+ pTMSI_TypeValue := valueof(val),
+ spare := '000'B,
+ elementIdentifier := '1110'B
+ }
+ return ret;
+ }
+}
+
+function ts_RoutingAreaIdentification2TLV(template (omit) OCT6 val) return template
(omit) RoutingAreaIdentification2TLV {
+ var template (omit) RoutingAreaIdentification2TLV ret;
+ if (istemplatekind(val, "omit")) {
+ return omit;
+ } else {
+ ret := {
+ elementIdentifier := '1B'O,
+ lengthIndicator := 6,
+ routingAreaIdentification2 := valueof(val)
+ }
+ return ret;
+ }
+}
+
+
template (value) PDU_L3_MS_SGSN ts_GMM_DET_REQ_MO(BIT3 dtt := c_GMM_DTT_MO_GPRS,
boolean power_off := false,
template (omit) OCT4 p_tmsi := omit,
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38918?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I6d735be76aab0b5228502e3e19804bcc98864829
Gerrit-Change-Number: 38918
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>