summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-05-04 19:54:02 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-05-05 00:16:38 +0700
commit135b45eed9871ad8cb5f794908811fdcdf9b5506 (patch)
treee086bb385657253b76906d2f0f12f4f601899a53 /library
parent4a07c129e8daf42eb352636f9431c796a08c626e (diff)
library: add PADDING attributes to SI3/SI4 Rest Octets
Change-Id: Icce6d1e565edc6dce51310364079fc3840a18d45 Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
Diffstat (limited to 'library')
-rw-r--r--library/GSM_RestOctets.ttcn8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/GSM_RestOctets.ttcn b/library/GSM_RestOctets.ttcn
index da3478a..045d177 100644
--- a/library/GSM_RestOctets.ttcn
+++ b/library/GSM_RestOctets.ttcn
@@ -39,6 +39,10 @@ type record SI3RestOctets {
variant (iu_mode_ind) "PRESENCE(gprs_ind.presence = '0'B)"
/* SI21 field is only present if 'WHERE' information is not present. */
variant (si21_ind) "PRESENCE(sched_where.presence = '0'B)"
+
+ /* The TITAN's RAW encoder generates an octet-aligned octetstring,
+ * so we should make sure that unused bits contain proper padding. */
+ variant "PADDING(yes), PADDING_PATTERN('00101011'B)"
};
/* 10.5.2.35 SI 4 Rest Octets (O & S) */
@@ -52,6 +56,10 @@ type record SI4RestOctets {
} with {
variant (s_presence) "CSN.1 L/H"
variant (s) "PRESENCE(s_presence = '1'B)"
+
+ /* The TITAN's RAW encoder generates an octet-aligned octetstring,
+ * so we should make sure that unused bits contain proper padding. */
+ variant "PADDING(yes), PADDING_PATTERN('00101011'B)"
};
/* Selection Parameters */