Change in osmo-ttcn3-hacks[master]: Add templates for FLUSH_LL_ACK

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
Wed Nov 25 16:10:24 UTC 2020


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

Change subject: Add templates for FLUSH_LL_ACK
......................................................................

Add templates for FLUSH_LL_ACK

Change-Id: I57ef98b9a3022ed5915381504aa129979799bee8
Related: SYS#5210
---
M library/Osmocom_Gb_Types.ttcn
1 file changed, 66 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/library/Osmocom_Gb_Types.ttcn b/library/Osmocom_Gb_Types.ttcn
index dacb720..1628f3a 100644
--- a/library/Osmocom_Gb_Types.ttcn
+++ b/library/Osmocom_Gb_Types.ttcn
@@ -767,6 +767,44 @@
 		BSSGP_CAUSE_NOT_ALL_REQUESTED_PFC_CREATED	('3c'H)
 	} with { variant "FIELDLENGTH(8)" };
 
+	private function t_FLUSH_ACTION(template OCT1 act)
+	return template Flush_Action {
+		var template Flush_Action r;
+		if (istemplatekind(act, "omit")) {
+			return omit;
+		} else if (istemplatekind(act, "*")) {
+			return *;
+		} else {
+			r := {
+				iEI := '0C'O,
+				ext := '1'B,
+				lengthIndicator := {
+					length1 := 1
+				},
+				actionValue := act
+			}
+			return r;
+		}
+	}
+	private function t_NO_OCT_AFF(template integer oct_aff)
+	return template Number_of_octets_affected {
+		var template Number_of_octets_affected r;
+		if (istemplatekind(oct_aff, "omit")) {
+			return omit;
+		} else if (istemplatekind(oct_aff, "*")) {
+			return *;
+		} else {
+			r := {
+				iEI := '25'O,
+				ext := '1'B,
+				lengthIndicator := {
+					length1 := 3
+				},
+				number_of_octets_transfered_or_deleted := f_oct_or_wc(oct_aff, 3)
+			}
+			return r;
+		}
+	}
 
 	private function t_BSSGP_BVCI(template BssgpBvci bvci)
 	return template BVCI {
@@ -1782,6 +1820,34 @@
 		}
 	}
 
+	/* 10.4.2 */
+	template (value) PDU_BSSGP ts_BSSGP_FLUSH_LL_ACK(GprsTlli tlli, template (value) OCT1 act,
+							 template (value) integer oct_affected,
+							 template (omit) BssgpBvci bvci_new := omit,
+							 template (omit) Nsei nsei := omit) := {
+		pDU_BSSGP_FLUSH_LL_ACK := {
+			bssgpPduType := '2B'O,
+			tLLI := ts_BSSGP_TLLI(tlli),
+			flush_Action := t_FLUSH_ACTION(act),
+			bVCI_new := t_BSSGP_BVCI(bvci_new),
+			number_of_octets_affected := t_NO_OCT_AFF(oct_affected),
+			nSEI := t_BSSGP_NSEI(nsei)
+		}
+	}
+	template PDU_BSSGP tr_BSSGP_FLUSH_LL_ACK(template GprsTlli tlli, template OCT1 act,
+						 template integer oct_affected,
+						 template (omit) BssgpBvci bvci_new := omit,
+						 template (omit) Nsei nsei := omit) := {
+		pDU_BSSGP_FLUSH_LL_ACK := {
+			bssgpPduType := '2B'O,
+			tLLI := ts_BSSGP_TLLI(tlli),
+			flush_Action := t_FLUSH_ACTION(act),
+			bVCI_new := t_BSSGP_BVCI(bvci_new),
+			number_of_octets_affected := t_NO_OCT_AFF(oct_affected),
+			nSEI := t_BSSGP_NSEI(nsei)
+		}
+	}
+
 	/* 10.2.3 */
 	template (value) PDU_BSSGP ts_BSSGP_RA_CAP(GprsTlli tlli,
 						   template (omit) MSRadioAccessCapabilityV_BSSGP racap := omit) := {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21320
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: I57ef98b9a3022ed5915381504aa129979799bee8
Gerrit-Change-Number: 21320
Gerrit-PatchSet: 2
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201125/31f14b73/attachment.htm>


More information about the gerrit-log mailing list