Change in osmo-ttcn3-hacks[master]: fixup library/GSM_RR_Types: fix BYTEORDER in MobileAllocation

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

fixeria gerrit-no-reply at lists.osmocom.org
Wed Jul 22 21:58:26 UTC 2020


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


Change subject: fixup library/GSM_RR_Types: fix BYTEORDER in MobileAllocation
......................................................................

fixup library/GSM_RR_Types: fix BYTEORDER in MobileAllocation

The following bitstring in TITAN:

   0                 N    // N = NF - 1
  -------------------->
   0001 1011 1110 0100    // '0001101111100100'B

needs to be be encoded as follows 'on the wire':

   N                 0    // N = NF - 1
  <--------------------
   0010 0111 1101 1000    // '0010011111011000'B

so it basically gets inversed => we need to use BYTEORDER(first).

Change-Id: Iea2e3a9a7a0557d1ab5d935877d2161ee0988077
Fixes: I70b1baf01859d0cf3b8cec1aed04d73fc097a9b1
Related: SYS#4868, OS#4547
---
M library/GSM_RR_Types.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index a0d8349..c12ebd1 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -279,7 +279,7 @@
 		bitstring	ma
 	} with {
 		variant (len) "LENGTHTO(ma)"
-		variant (ma) "BYTEORDER(last), BITORDER(msb)"
+		variant (ma) "BYTEORDER(first), BITORDER(msb)"
 	};
 
 	/* 10.5.2.25a */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19370
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: Iea2e3a9a7a0557d1ab5d935877d2161ee0988077
Gerrit-Change-Number: 19370
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200722/533fd066/attachment.htm>


More information about the gerrit-log mailing list