From 899198ed2ea73fbc554c28bd3da567e2363b18e3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 3 Mar 2011 01:11:52 +0100 Subject: ss7: Move the blocking of outgoing messages into the SS7 app We are using knowledge of the SS7 application to drop outgoing packages to force failures on the link and should move this into the ss7 application. --- src/mtp_layer3.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/mtp_layer3.c') diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c index 928a05c..95e5dfc 100644 --- a/src/mtp_layer3.c +++ b/src/mtp_layer3.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -36,23 +35,6 @@ static int mtp_int_submit(struct mtp_link_set *set, int pc, int sls, int type, const uint8_t *data, unsigned int length); -void mtp_link_submit(struct mtp_link *link, struct msgb *msg) -{ - if (link->set->app && link->set->app->type == APP_STP) { - if (!link->set->app->route_src.up || !link->set->app->route_dst.up) { - LOGP(DINP, LOGL_NOTICE, "Not sending data as application is down %d/%s.\n", - link->set->app->nr, link->set->app->name); - msgb_free(msg); - return; - } - } - - rate_ctr_inc(&link->ctrg->ctr[MTP_LNK_OUT]); - rate_ctr_inc(&link->set->ctrg->ctr[MTP_LSET_TOTA_OUT_MSG]); - link->write(link, msg); -} - - struct msgb *mtp_msg_alloc(struct mtp_link_set *set) { struct mtp_level_3_hdr *hdr; -- cgit v1.2.3