Change in osmo-ttcn3-hacks[master]: BSSLAP: add some templates

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/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Oct 13 08:43:13 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370 )

Change subject: BSSLAP: add some templates
......................................................................

BSSLAP: add some templates

Change-Id: I6774bb6aefed67ebbfd5da8e52bb463cd6279ed4
---
M library/BSSLAP_Types.ttcn
1 file changed, 76 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/BSSLAP_Types.ttcn b/library/BSSLAP_Types.ttcn
index 90c3953..742d1f5 100644
--- a/library/BSSLAP_Types.ttcn
+++ b/library/BSSLAP_Types.ttcn
@@ -493,7 +493,83 @@
 	}
 }
 
+template (value) BSSLAP_PDU ts_BSSLAP_TA_Layer3(uint8_t ta) := {
+	ta_layer3 := {
+		msg_type := BSSLAP_MSGT_TA_LAYER3,
+		timing_advance := ts_BSSLAP_IE_TA(ta),
+		meas_rep := omit,
+		enh_meas_rep := omit,
+		meas_cell_id_list := omit
+	}
+}
 
+template (present) BSSLAP_PDU tr_BSSLAP_TA_Layer3(template BSSLAP_IE_TimingAdvance timing_advance := *) := {
+	ta_layer3 := {
+		msg_type := BSSLAP_MSGT_TA_LAYER3,
+		timing_advance := timing_advance,
+		meas_rep := *,
+		enh_meas_rep := *,
+		meas_cell_id_list := *
+	}
+}
+
+template (value) BSSLAP_IE_ChanDesc ts_BSSLAP_IE_ChanDesc := {
+	iei := BSSLAP_IEI_CHAN_DESC,
+	chan_desc := '112233'O /* FIXME */
+}
+
+template (value) BSSLAP_PDU
+ts_BSSLAP_Reset(uint16_t cell_id,
+		uint8_t ta,
+		BSSLAP_IE_ChanDesc chan_desc,
+		BSSLAP_Cause cause) := {
+	reset := {
+		msg_type := BSSLAP_MSGT_RESET,
+		cell_id := ts_BSSLAP_IE_CellId(cell_id),
+		timing_advance := ts_BSSLAP_IE_TA(ta),
+		chan_desc := chan_desc,
+		cause := tr_BSSLAP_IE_Cause(cause),
+		meas_rep := omit,
+		enh_meas_rep := omit,
+		meas_cell_id_list := omit,
+		lac := omit,
+		freq_list := omit,
+		chan_mode := omit,
+		mr_config := omit,
+		pkt_chan_desc := omit,
+		tlli := omit,
+		tfi := omit,
+		tbf_start_time := omit,
+		encr_key := omit,
+		ciph_mode_set := omit,
+		long_encr_key := omit
+	}
+}
+
+template (present) BSSLAP_PDU
+tr_BSSLAP_Reset(template (present) BSSLAP_Cause cause) := {
+	reset := {
+		msg_type := BSSLAP_MSGT_RESET,
+		cell_id := ?,
+		timing_advance := ?,
+		chan_desc := ?,
+		cause := tr_BSSLAP_IE_Cause(cause),
+		meas_rep := *,
+		enh_meas_rep := *,
+		meas_cell_id_list := *,
+		lac := *,
+		freq_list := *,
+		chan_mode := *,
+		mr_config := *,
+		pkt_chan_desc := *,
+		tlli := *,
+		tfi := *,
+		tbf_start_time := *,
+		encr_key := *,
+		ciph_mode_set := *,
+		long_encr_key := *
+	}
+}
 
 template (value) BSSLAP_IE_TimingAdvance ts_BSSLAP_IE_TA(uint8_t ta) := {
 	iei := BSSLAP_IEI_TA,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20370
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: I6774bb6aefed67ebbfd5da8e52bb463cd6279ed4
Gerrit-Change-Number: 20370
Gerrit-PatchSet: 4
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201013/bb34e109/attachment.htm>


More information about the gerrit-log mailing list