svn commit: r267726 - stable/10/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Jun 22 16:34:28 UTC 2014
Author: tuexen
Date: Sun Jun 22 16:34:27 2014
New Revision: 267726
URL: http://svnweb.freebsd.org/changeset/base/267726
Log:
MFC r264017:
Increment the SSN only after processing the last fragment of an
ordered user message.
Modified:
stable/10/sys/netinet/sctp_output.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/sctp_output.c
==============================================================================
--- stable/10/sys/netinet/sctp_output.c Sun Jun 22 16:32:41 2014 (r267725)
+++ stable/10/sys/netinet/sctp_output.c Sun Jun 22 16:34:27 2014 (r267726)
@@ -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