diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-03-19 20:01:17 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-20 03:09:43 -0400 |
commit | 0b58a811461ccf3cf848aba4cc192538fd3b0516 (patch) | |
tree | e8ada90819aabdcc2041a5637c7e6f44446cc36b /net/sctp/associola.c | |
parent | c577c2b99387b5ff8607d42d6eaff9ec024d4773 (diff) |
[SCTP]: Clean up stale data during association restart
During association restart we may have stale data sitting
on the ULP queue waiting for ordering or reassembly. This
data may cause severe problems if not cleaned up. In particular
stale data pending ordering may cause problems with receive
window exhaustion if our peer has decided to restart the
association.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index fa82b73c965..2505cd3b8d2 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -1063,6 +1063,12 @@ void sctp_assoc_update(struct sctp_association *asoc, | |||
1063 | */ | 1063 | */ |
1064 | sctp_ssnmap_clear(asoc->ssnmap); | 1064 | sctp_ssnmap_clear(asoc->ssnmap); |
1065 | 1065 | ||
1066 | /* Flush the ULP reassembly and ordered queue. | ||
1067 | * Any data there will now be stale and will | ||
1068 | * cause problems. | ||
1069 | */ | ||
1070 | sctp_ulpq_flush(&asoc->ulpq); | ||
1071 | |||
1066 | } else { | 1072 | } else { |
1067 | /* Add any peer addresses from the new association. */ | 1073 | /* Add any peer addresses from the new association. */ |
1068 | list_for_each(pos, &new->peer.transport_addr_list) { | 1074 | list_for_each(pos, &new->peer.transport_addr_list) { |