|
@@ -1046,6 +1046,9 @@ void sctp_assoc_update(struct sctp_association *asoc,
|
|
trans = list_entry(pos, struct sctp_transport, transports);
|
|
trans = list_entry(pos, struct sctp_transport, transports);
|
|
if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr))
|
|
if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr))
|
|
sctp_assoc_del_peer(asoc, &trans->ipaddr);
|
|
sctp_assoc_del_peer(asoc, &trans->ipaddr);
|
|
|
|
+
|
|
|
|
+ if (asoc->state >= SCTP_STATE_ESTABLISHED)
|
|
|
|
+ sctp_transport_reset(trans);
|
|
}
|
|
}
|
|
|
|
|
|
/* If the case is A (association restart), use
|
|
/* If the case is A (association restart), use
|
|
@@ -1069,6 +1072,12 @@ void sctp_assoc_update(struct sctp_association *asoc,
|
|
*/
|
|
*/
|
|
sctp_ulpq_flush(&asoc->ulpq);
|
|
sctp_ulpq_flush(&asoc->ulpq);
|
|
|
|
|
|
|
|
+ /* reset the overall association error count so
|
|
|
|
+ * that the restarted association doesn't get torn
|
|
|
|
+ * down on the next retransmission timer.
|
|
|
|
+ */
|
|
|
|
+ asoc->overall_error_count = 0;
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
/* Add any peer addresses from the new association. */
|
|
/* Add any peer addresses from the new association. */
|
|
list_for_each(pos, &new->peer.transport_addr_list) {
|
|
list_for_each(pos, &new->peer.transport_addr_list) {
|