diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 15:15:28 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 19:34:28 +0100 |
commit | 7c6feca7cf294f8c99ac6ee33553ea25b351fdc4 (patch) | |
tree | 1092b5fe59c5b4576709709f0406e07e050a9386 | |
parent | 8fd28dbbe64cb32e5f296bd2679cebf03b5d14c0 (diff) |
m2ua: Do nothing on a reset request for now.
Only restart the link test on this link in case the link
is present and we need to do things. The link up/down should
be controlled in a different way.
-rw-r--r-- | src/sctp_m2ua.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c index 89bfb70..55b9d29 100644 --- a/src/sctp_m2ua.c +++ b/src/sctp_m2ua.c @@ -681,12 +681,18 @@ static int sctp_m2ua_start(struct mtp_link *_link) static int sctp_m2ua_reset(struct mtp_link *_link) { - struct sctp_m2ua_conn *conn, *tmp; struct mtp_m2ua_link *link = (struct mtp_m2ua_link *) _link->data; - /* TODO: only connection that use the current link index! */ - llist_for_each_entry_safe(conn, tmp, &link->transport->conns, entry) - m2ua_conn_destroy(conn); + /* + * TODO: Send a Release Indication? Send NTFY to other ASPs to + * ask them to activate the link? What should we do here? Right + * now do exactly nothing. + */ + LOGP(DINP, LOGL_ERROR, + "M2UA link-index %d not doing the reset.\n", link->link_index); + + if (link->conn && link->asp_active && link->established) + mtp_link_start_link_test(_link); return 0; } |