mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user