aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-03-02 23:44:03 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-03-02 23:44:03 +0100
commit3574c121ff051e678b12d49cf9e66584cebf4b7f (patch)
treeba68b2eace52ae7a74f2ee58281087410fc879b9
parentec84e3c1a16aaffe44b3f8968a4e8792ee057b6d (diff)
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.
-rw-r--r--src/mtp_layer3.c2
1 files changed, 1 insertions, 1 deletions
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;
}