Change in osmo-bts[master]: RSL: Reject RLL messages for lchans that are not active yet

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun May 19 12:18:54 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/14085


Change subject: RSL: Reject RLL messages for lchans that are not active yet
......................................................................

RSL: Reject RLL messages for lchans that are not active yet

The Radio Link Layer (RLL) messages only make sense when a given
logical channel is active.  If it isn't active, let's reject the
messages with an RSL ERROR REPORT with cause "Message sequence error",
wich according to spec means:

"A message with an existing message type which is not possible according
 to the specification and to the state of the BTS is erroneous."

Related: OS#3789
Change-Id: I68dbb622aeaee657471664cdc0b69c2ac316d77e
---
M src/common/rsl.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/85/14085/1

diff --git a/src/common/rsl.c b/src/common/rsl.c
index 0fe50e0..829a4e6 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2559,6 +2559,14 @@
 		return rsl_reject_unknown_lchan(msg);
 	}
 
+	if (lchan->state != LCHAN_S_ACTIVE) {
+		LOGP(DRLL, LOGL_NOTICE, "x RLL %s for lchan which isn't active\n",
+			rsl_msg_name(rh->c.msg_type));
+		rsl_tx_error_report(trx, RSL_ERR_MSG_SEQ, &rh->chan_nr, &rh->link_id, msg);
+		msgb_free(msg);
+		return -1;
+	}
+
 	DEBUGP(DRLL, "%s Rx RLL %s Abis -> LAPDm\n", gsm_lchan_name(lchan),
 		rsl_msg_name(rh->c.msg_type));
 

-- 
To view, visit https://gerrit.osmocom.org/14085
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68dbb622aeaee657471664cdc0b69c2ac316d77e
Gerrit-Change-Number: 14085
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190519/b6960803/attachment.html>


More information about the gerrit-log mailing list