summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-15 10:58:43 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-15 10:59:30 +0200
commitf56cc49d758c5b980e22f172e8967352426c4eb6 (patch)
tree9132510f41f7ba091971f9c25cd2af3516a61d74
parenta28dce1021e982d911b0c7a1ecbfc7bc1502c782 (diff)
L1CTL: Correctly parse L1CTL messages with zero-length payload
Some messages can happen with zero-length payload section, e.g. a DL_DATA_IND with CRC errors. Change-Id: Ice1d872c12fb33bc4e2d285870fdb877f6efe355
-rw-r--r--library/L1CTL_Types.ttcn6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 7403099..4c0e14d 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -170,7 +170,7 @@ module L1CTL_Types {
type record L1ctlDlMessage {
L1ctlHeader header,
L1ctlDlInfo dl_info optional,
- L1ctlDlPayload payload
+ L1ctlDlPayload payload optional
} with { variant (dl_info) "PRESENCE(header.msg_type = L1CTL_FBSB_CONF,
header.msg_type = L1CTL_RACH_CONF,
header.msg_type = L1CTL_DATA_IND,
@@ -442,7 +442,7 @@ module L1CTL_Types {
template L1ctlDlMessage tr_L1CTL_MsgType(template L1ctlMsgType msg_type) := {
header := tr_L1ctlHeader(msg_type),
dl_info := *,
- payload := ?
+ payload := *
}
template L1ctlDlMessage tr_L1CTL_CCCH_MODE_CONF := tr_L1CTL_MsgType(L1CTL_CCCH_MODE_CONF);
@@ -604,7 +604,7 @@ module L1CTL_Types {
template L1ctlDlMessage tr_L1CTL_RACH_CONF := {
header := tr_L1ctlHeader(L1CTL_RACH_CONF),
dl_info := ?,
- payload := ?
+ payload := *
};
/* for matching against incoming DATA_IND */