Change in osmo-ttcn3-hacks[master]: library: Add templates to initialize CellId, RAI, LAI

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Jan 8 16:18:19 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22056 )


Change subject: library: Add templates to initialize CellId, RAI, LAI
......................................................................

library: Add templates to initialize CellId, RAI, LAI

Change-Id: Ie9d86e1b651dff279e7d50a4282bf14fbed5bb76
---
M library/GSM_Types.ttcn
M library/Osmocom_Gb_Types.ttcn
2 files changed, 13 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/22056/1

diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn
index 34b6517..6cc3c08 100644
--- a/library/GSM_Types.ttcn
+++ b/library/GSM_Types.ttcn
@@ -420,12 +420,20 @@
 	BcdMccMnc	mcc_mnc,
 	uint16_t	lac
 } with { variant "" };
+template (value) LocationAreaIdentification ts_LAI(BcdMccMnc mcc_mnc, uint16_t lac) := {
+	mcc_mnc := mcc_mnc,
+	lac := lac
+};
 
 /* 24.008 10.5.5.15 */
 type record RoutingAreaIdentification {
 	LocationAreaIdentification	lai,
 	uint8_t				rac
 } with { variant "" };
+template (value) RoutingAreaIdentification ts_RAI(template (value) LocationAreaIdentification lai, uint8_t rac) := {
+	lai := lai,
+	rac := rac
+};
 
 external function enc_RoutingAreaIdentification(RoutingAreaIdentification rai) return octetstring
 with { extension "prototype(convert)" extension "encode(RAW)" }
diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index b83131d..518d619 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -733,6 +733,11 @@
 		CellIdentity			cell_id
 	} with { variant "" };
 
+	template (value) BssgpCellId ts_BssgpCellId(template (value) RoutingAreaIdentification rai, CellIdentity cell_id) := {
+		ra_id := rai,
+		cell_id := cell_id
+	};
+
 	type enumerated BssgpCause {
 		BSSGP_CAUSE_PROC_OVERLOAD			('00'H),
 		BSSGP_CAUSE_EQUIMENT_FAILURE			('01'H),

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22056
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie9d86e1b651dff279e7d50a4282bf14fbed5bb76
Gerrit-Change-Number: 22056
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210108/99721c6e/attachment.htm>


More information about the gerrit-log mailing list