From 7c6feca7cf294f8c99ac6ee33553ea25b351fdc4 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 17 Feb 2011 15:15:28 +0100 Subject: [PATCH] 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. --- src/sctp_m2ua.c | 14 ++++++++++---- 1 file 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; }