aboutsummaryrefslogtreecommitdiffstats
path: root/src/msc_conn.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-02 16:36:29 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-17 11:21:09 +0100
commitf19afaed7bcf4959329ff8f6c9600132726b75e1 (patch)
treed236046828687a56990ce6b39a0b63783ef0a67a /src/msc_conn.c
parenta99b04b700891e39d0a10444224fc77a86945970 (diff)
sccp: Stop queueing messages between SLTM messages
Remove the queueing of messages that was added during a debugging session and should not be needed. This will simply bringing down the linkset.
Diffstat (limited to 'src/msc_conn.c')
-rw-r--r--src/msc_conn.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/msc_conn.c b/src/msc_conn.c
index 77c4039..9f8e4c6 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -46,31 +46,8 @@ static void msc_send_id_response(struct bsc_data *bsc);
static void msc_send(struct bsc_data *bsc, struct msgb *msg, int proto);
static void msc_schedule_reconnect(struct bsc_data *bsc);
-void mtp_link_slta_recv(struct mtp_link *link)
-{
- struct msgb *msg;
- unsigned int sls;
-
- while (!llist_empty(&link->pending_msgs)) {
- msg = msgb_dequeue(&link->pending_msgs);
- sls = (unsigned int) msg->l3h;
-
- if (mtp_link_submit_sccp_data(link, sls, msg->l2h, msgb_l2len(msg)) != 0)
- LOGP(DMSC, LOGL_ERROR, "Could not forward SCCP message.\n");
-
- msgb_free(msg);
- }
-}
-
int send_or_queue_bsc_msg(struct mtp_link *link, int sls, struct msgb *msg)
{
- if (link->sltm_pending) {
- LOGP(DMSC, LOGL_NOTICE, "Queueing msg for pending SLTM.\n");
- msg->l3h = (uint8_t *) sls;
- msgb_enqueue(&link->pending_msgs, msg);
- return 1;
- }
-
if (mtp_link_submit_sccp_data(link, sls, msg->l2h, msgb_l2len(msg)) != 0)
LOGP(DMSC, LOGL_ERROR, "Could not forward SCCP message.\n");
return 0;
@@ -79,13 +56,6 @@ int send_or_queue_bsc_msg(struct mtp_link *link, int sls, struct msgb *msg)
void msc_clear_queue(struct bsc_data *data)
{
- struct msgb *msg;
-
- LOGP(DMSC, LOGL_NOTICE, "Clearing the MSC to BSC queue.\n");
- while (!llist_empty(&data->link.the_link->pending_msgs)) {
- msg = msgb_dequeue(&data->link.the_link->pending_msgs);
- msgb_free(msg);
- }
}
void msc_close_connection(struct bsc_data *bsc)