diff options
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index fa82b73c965b..78d2ddb5ca18 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -1046,6 +1046,9 @@ void sctp_assoc_update(struct sctp_association *asoc, | |||
1046 | trans = list_entry(pos, struct sctp_transport, transports); | 1046 | trans = list_entry(pos, struct sctp_transport, transports); |
1047 | if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) | 1047 | if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) |
1048 | sctp_assoc_del_peer(asoc, &trans->ipaddr); | 1048 | sctp_assoc_del_peer(asoc, &trans->ipaddr); |
1049 | |||
1050 | if (asoc->state >= SCTP_STATE_ESTABLISHED) | ||
1051 | sctp_transport_reset(trans); | ||
1049 | } | 1052 | } |
1050 | 1053 | ||
1051 | /* If the case is A (association restart), use | 1054 | /* If the case is A (association restart), use |
@@ -1063,6 +1066,18 @@ void sctp_assoc_update(struct sctp_association *asoc, | |||
1063 | */ | 1066 | */ |
1064 | sctp_ssnmap_clear(asoc->ssnmap); | 1067 | sctp_ssnmap_clear(asoc->ssnmap); |
1065 | 1068 | ||
1069 | /* Flush the ULP reassembly and ordered queue. | ||
1070 | * Any data there will now be stale and will | ||
1071 | * cause problems. | ||
1072 | */ | ||
1073 | sctp_ulpq_flush(&asoc->ulpq); | ||
1074 | |||
1075 | /* reset the overall association error count so | ||
1076 | * that the restarted association doesn't get torn | ||
1077 | * down on the next retransmission timer. | ||
1078 | */ | ||
1079 | asoc->overall_error_count = 0; | ||
1080 | |||
1066 | } else { | 1081 | } else { |
1067 | /* Add any peer addresses from the new association. */ | 1082 | /* Add any peer addresses from the new association. */ |
1068 | list_for_each(pos, &new->peer.transport_addr_list) { | 1083 | list_for_each(pos, &new->peer.transport_addr_list) { |