Change in osmo-ttcn3-hacks[master]: IuUP_Emulation: Fix frame number wrap-around

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
Tue Dec 21 17:30:31 UTC 2021


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


Change subject: IuUP_Emulation: Fix frame number wrap-around
......................................................................

IuUP_Emulation: Fix frame number wrap-around

As seen when running a test:
IuUP_Emulation.ttcn:150 Dynamic test case error: While RAW-encoding type '@IuUP_Types.IuUP_PDU': There are insufficient bits to encode '@IuUP_Types.IuUP_PDU_Type_0.frame_nr'

Change-Id: Ic9e69115c49545a7b9797d8f85568d5e91dfb329
---
M library/IuUP_Emulation.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/library/IuUP_Emulation.ttcn b/library/IuUP_Emulation.ttcn
index 56384ee..b35602c 100644
--- a/library/IuUP_Emulation.ttcn
+++ b/library/IuUP_Emulation.ttcn
@@ -143,7 +143,7 @@
 			} else {
 				pdu := valueof(ts_IuUP_Type1(st.tx_next_frame_nr, 0, payload));
 			}
-			st.tx_next_frame_nr := st.tx_next_frame_nr + 1;
+			st.tx_next_frame_nr := (st.tx_next_frame_nr + 1) mod 16;
 		}
 	}
 	if (isvalue(pdu)) {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26656
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: Ic9e69115c49545a7b9797d8f85568d5e91dfb329
Gerrit-Change-Number: 26656
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/20211221/fb394926/attachment.htm>


More information about the gerrit-log mailing list