summaryrefslogtreecommitdiffstats
path: root/library/GSM_RR_Types.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-10 15:15:08 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-12 16:04:22 +0100
commitf8df4cb339425261a7f1bc96c70fa6c99018cf20 (patch)
tree38dbe7b93fed44b02ecb0990027542be3ab959f8 /library/GSM_RR_Types.ttcn
parentcc5c1152cca8d610bf541f385fa578564caec12a (diff)
L1CTL/bts: Fix tons of compiler warnings by splitting rx+tx templates
Diffstat (limited to 'library/GSM_RR_Types.ttcn')
-rw-r--r--library/GSM_RR_Types.ttcn17
1 files changed, 15 insertions, 2 deletions
diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn
index b1e6809..2ceb1f8 100644
--- a/library/GSM_RR_Types.ttcn
+++ b/library/GSM_RR_Types.ttcn
@@ -114,7 +114,12 @@ module GSM_RR_Types {
BIT2 zero_one
} with { variant "" };
- template L2PseudoLength t_L2Pseudolength(template uint6_t len) := {
+ template L2PseudoLength tr_L2Pseudolength(template uint6_t len) := {
+ l2_plen := len,
+ zero_one := '01'B
+ };
+
+ template (value) L2PseudoLength ts_L2Pseudolength(uint6_t len) := {
l2_plen := len,
zero_one := '01'B
};
@@ -127,12 +132,20 @@ module GSM_RR_Types {
} with { variant "" };
template RrHeader t_RrHeader(RrMessageType msg_type, template uint6_t len) := {
- l2_plen := t_L2Pseudolength(len),
+ l2_plen := tr_L2Pseudolength(len),
+ skip_indicator := 0,
+ rr_protocol_discriminator := 6,
+ message_type := msg_type
+ };
+
+ template (value) RrHeader ts_RrHeader(RrMessageType msg_type, uint6_t len) := {
+ l2_plen := ts_L2Pseudolength(len),
skip_indicator := 0,
rr_protocol_discriminator := 6,
message_type := msg_type
};
+
type record RrL3Header {
uint4_t skip_indicator,
uint4_t rr_protocol_discriminator,