aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-27 13:29:48 +0700
committerfixeria <axilirator@gmail.com>2020-05-29 15:31:12 +0000
commite8ea3ee10ea705e5e4b490906ffa46f419d4b90e (patch)
tree609ac9e631acc1919045eb760cfa7cf8345bffa6
parent5afe885d2614a7508d02c802861172ac137362b0 (diff)
library/L1CTL_Types: fix definition of L1ctlH1 (hopping parameters)
-rw-r--r--library/L1CTL_Types.ttcn16
1 files changed, 13 insertions, 3 deletions
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 0870a203..38e4c15d 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -290,13 +290,23 @@ module L1CTL_Types {
octetstring l2_payload
} with { variant "" };
+ type record length(0..64) of Arfcn L1ctlMA;
type record L1ctlH1 {
uint8_t hsn,
uint8_t maio,
uint8_t n,
- OCT1 padding,
- bitstring ma length(64)
- } with { variant "" };
+ OCT1 spare,
+ L1ctlMA ma,
+ octetstring padding
+ } with {
+ variant (n) "LENGTHTO(ma)"
+ variant (n) "UNIT(elements)"
+ /* See https://bugs.eclipse.org/bugs/show_bug.cgi?id=562849.
+ * TL;DR The reference point of the PADDING attribute is the beginning
+ * of the message, not the beginning of the type/field it's applied on.
+ * Therefore we cannot use it here, and have to add padding manually.
+ * variant (ma) "PADDING(128)" */
+ };
type record L1ctlDmEstReq {
GsmTsc tsc,