From ed4390747fceb0390437095b5a01b5e2e009a33c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 11 Apr 2010 10:08:42 +0200 Subject: 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. --- openbsc/src/bsc_msc_ip.c | 8 +------- 1 file changed, 1 insertion(+), 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); } /* -- cgit v1.2.3