summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-07-05 18:31:59 +0200
committerPablo Neira Ayuso2011-07-05 18:31:59 +0200
commitb9ed7e3145f01c7867e8ad1a9fb3de44e24c953f (patch)
tree31bd41dd055c3db9bf0e7acc520653f136857908
parentsrc: use signal infrastructure that will be available in libosmocore (diff)
downloadlibosmo-abis-b9ed7e3145f01c7867e8ad1a9fb3de44e24c953f.tar.gz
libosmo-abis-b9ed7e3145f01c7867e8ad1a9fb3de44e24c953f.tar.xz
libosmo-abis-b9ed7e3145f01c7867e8ad1a9fb3de44e24c953f.zip
ipaccess: fix write path for OML/RSL message from BSC -> BTS
This patch fixes the write path for OML/RSL messages. I broke this while trying to support the delivery of IPA CCM messages using this path, which is not useful since they are directly delivered by means of the file descriptor. This patch fixes the corruption of messages leaving the BSC.
-rw-r--r--src/input/ipaccess.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index e329a83..cb901ee 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -462,9 +462,7 @@ static int __handle_ts1_write(struct osmo_fd *bfd, struct e1inp_line *line)
}
msg->l2h = msg->data;
- /* This is an IPA CCM, it already contains the header, skip. */
- if (msgb_tailroom(msg) < sizeof(struct ipaccess_head))
- ipaccess_prepend_header(msg, sign_link->tei);
+ ipaccess_prepend_header(msg, sign_link->tei);
DEBUGP(DMI, "TX %u: %s\n", ts_nr, osmo_hexdump(msg->l2h, msgb_l2len(msg)));