From f0d4a2213a27c049df0c579aff0f699273fc7686 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 17 Aug 2014 18:42:13 +0200 Subject: ipa: Set msgb->l1h to the beginning of the IPA header l2h points to the OML/RSL header, so it is only logical that l1h points to the IPA header. Also, this is what osmo-bts/msg_utils.c expects. --- src/input/ipa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/ipa.c b/src/input/ipa.c index 71e1227..056c648 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c @@ -64,8 +64,10 @@ int ipa_msg_recv_buffered(int fd, struct msgb **rmsg, struct msgb **tmp_msg) int len, ret; int needed; - if (msg == NULL) + if (msg == NULL) { msg = ipa_msg_alloc(0); + msg->l1h = msg->tail; + } if (msg == NULL) { ret = -ENOMEM; -- cgit v1.2.3