From 3574c121ff051e678b12d49cf9e66584cebf4b7f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 2 Mar 2011 23:44:03 +0100 Subject: [PATCH] mtp: Consider the linkset be ready for SCTP after having collected routing data After the expiry of T18 we should have collected the routing data from the adjacent links and should be able to send SCCP packages to remote endpoints. --- src/mtp_layer3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c index 544987d..45bbfa3 100644 --- a/src/mtp_layer3.c +++ b/src/mtp_layer3.c @@ -282,6 +282,7 @@ static void linkset_t18_cb(void *_set) /* TODO: now send out routing states */ LOGP(DINP, LOGL_NOTICE, "The linkset %d has collected routing data.\n", set->nr); + set->sccp_up = 1; } static void linkset_t20_cb(void *_set) @@ -336,7 +337,6 @@ static int mtp_link_sign_msg(struct mtp_link_set *set, struct mtp_level_3_hdr *h bsc_del_timer(&set->T20); linkset_t18_cb(set); linkset_t20_cb(set); - set->sccp_up = 1; return 0; break; }