svn commit: r264017 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Tue Apr 1 18:38:05 UTC 2014
Author: tuexen
Date: Tue Apr 1 18:38:04 2014
New Revision: 264017
URL: http://svnweb.freebsd.org/changeset/base/264017
Log:
Increment the SSN only after processing the last fragment of an
ordered user message.
MFC after: 3 days
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Tue Apr 1 18:37:00 2014 (r264016)
+++ head/sys/netinet/sctp_output.c Tue Apr 1 18:38:04 2014 (r264017)
@@ -7367,7 +7367,8 @@ dont_do_it:
chk->pad_inplace = 0;
chk->no_fr_allowed = 0;
chk->rec.data.stream_seq = strq->next_sequence_send;
- if (rcv_flags & SCTP_DATA_LAST_FRAG) {
+ if ((rcv_flags & SCTP_DATA_LAST_FRAG) &&
+ !(rcv_flags & SCTP_DATA_UNORDERED)) {
strq->next_sequence_send++;
}
chk->rec.data.stream_number = sp->stream;
More information about the svn-src-all
mailing list