aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-07-28 11:48:40 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-25 23:19:58 +0100
commit24839068f5c7e044e82afaa3b88d08a07e123ee7 (patch)
tree7fb40bafaed96850e143df2ded4f270deacac501
parentb631bd21d21b10f8e0344dc47af34ef09306d0fb (diff)
sysmo-bts: Use correct boundaries of L1 msg when forwarding to L1 proxy
In case of a headroom in a message, the 'head' pointer will not point to the actual data.
-rw-r--r--src/osmo-bts-sysmo/l1_transp_fwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/l1_transp_fwd.c b/src/osmo-bts-sysmo/l1_transp_fwd.c
index 5050705e..87c230bb 100644
--- a/src/osmo-bts-sysmo/l1_transp_fwd.c
+++ b/src/osmo-bts-sysmo/l1_transp_fwd.c
@@ -95,7 +95,7 @@ static int fwd_read_cb(struct osmo_fd *ofd)
static int prim_write_cb(struct osmo_fd *ofd, struct msgb *msg)
{
/* write to the fd */
- return write(ofd->fd, msg->head, msg->len);
+ return write(ofd->fd, msg->l1h, msgb_l1len(msg));
}
int l1if_transport_open(int q, struct femtol1_hdl *fl1h)