aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2018-08-10 15:01:46 +0200
committerKeith Whyte <keith@rhizomatica.org>2018-08-10 14:31:30 +0000
commitf02d17f75a417a40848f35fcd197144ccba803b1 (patch)
treeaf5c1373af3e331caef9eb12def7021f37c4562c
parentf896c690be9dc38725f4951167050e166333ce48 (diff)
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
-rw-r--r--src/libmsc/mncc_sock.c1
1 files changed, 1 insertions, 0 deletions
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;