From f02d17f75a417a40848f35fcd197144ccba803b1 Mon Sep 17 00:00:00 2001 From: Keith Date: Fri, 10 Aug 2018 15:01:46 +0200 Subject: [PATCH] libmsc/mncc_sock.c: Add lchan_type_offset in queue_hello() lchan_type was removed from gsm_mncc and the hello message on initial import from legacy OpenBSC in Change-Id: Id3705236350d5f69e447046b0a764bbabc3d493c This patch follows on from Change-Id: Ia02373a36df7605507ee3de49173a9fd6547b726 which reintroduced lchan_type to the gsm_mncc struct. This patch restores the lchan_type_offset to the hello protocol message Without this patch, LCR will issue an error and disconnect from the MNCC socket. Change-Id: I65312082fa5dc0721170f923840e992ef9481a63 Closes: OS#3461 --- src/libmsc/mncc_sock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libmsc/mncc_sock.c b/src/libmsc/mncc_sock.c index 74ea9d20c..57b4bd883 100644 --- a/src/libmsc/mncc_sock.c +++ b/src/libmsc/mncc_sock.c @@ -228,6 +228,7 @@ static void queue_hello(struct mncc_sock_state *mncc) hello->called_offset = offsetof(struct gsm_mncc, called); hello->signal_offset = offsetof(struct gsm_mncc, signal); hello->emergency_offset = offsetof(struct gsm_mncc, emergency); + hello->lchan_type_offset = offsetof(struct gsm_mncc, lchan_type); msgb_enqueue(&mncc->net->upqueue, msg); mncc->conn_bfd.when |= BSC_FD_WRITE;