aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-11 10:08:42 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-11 10:08:42 +0200
commited4390747fceb0390437095b5a01b5e2e009a33c (patch)
tree31b2323afbd7252659a7418c47a365f6249ad9ff
parent242d098d3233ce15b3476462aad692e98aac3f92 (diff)
bsc_msc_ip.c: Do not directly write but use the write queue..
Use the write queue to write data to the MSC instead of using a direct write.
-rw-r--r--openbsc/src/bsc_msc_ip.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 96afbc5e9..50ea36b45 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -804,13 +804,7 @@ static void send_id_get_response(int fd)
msg->l2h = msgb_v_put(msg, IPAC_MSGT_ID_RESP);
msgb_l16tv_put(msg, strlen(bsc_gsmnet->bsc_token) + 1,
IPAC_IDTAG_UNITNAME, (u_int8_t *) bsc_gsmnet->bsc_token);
- ipaccess_prepend_header(msg, IPAC_PROTO_IPACCESS);
-
- if (write(fd, msg->data, msg->len) != msg->len) {
- LOGP(DMSC, LOGL_ERROR, "Short write.\n");
- }
-
- msgb_free(msg);
+ msc_queue_write(msg, IPAC_PROTO_IPACCESS);
}
/*