summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-03-13 11:06:52 +0100
committerAlexander Couzens <lynxis@fe80.eu>2017-03-13 11:10:14 +0100
commit312ee94aaad00a708c9858b0e7d5940ec9c68d51 (patch)
treeb0c66d609440849f66073248eb3187f54172a266
parentda0d703d5d5cc6adc54f00ee058836b44ef013ea (diff)
abis_rsl: use msgb_pull to parse tlli from msglynxis/rbs2000_upstream
-rw-r--r--openbsc/src/libbsc/abis_rsl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index bcd40fe..670e388 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -2049,10 +2049,8 @@ static int abis_rsl_rx_cchan(struct msgb *msg)
else if(msg->data[4] != 0xf1)
LOGP(DRSL, LOGL_ERROR, "unsupported IMM.ass message format! (please fix)\n");
else {
- tlli = msg->data[8];
- tlli |= msg->data[7] << 8;
- tlli |= msg->data[6] << 16;
- tlli |= msg->data[5] << 24;
+ msgb_pull(msg, 5); /* drop previous data to use msg_pull_u32 */
+ tlli = msgb_pull_u32(msg)
pcu_tx_imm_ass_sent(sign_link->trx->bts, tlli);
}
break;