Author: tuexen
Date: Thu May 15 20:08:25 2014
New Revision: 266184
URL: http://svnweb.freebsd.org/changeset/base/266184

Log:
  MFC r264017:
  
  Increment the SSN only after processing the last fragment of an
  ordered user message.

Modified:
  stable/9/sys/netinet/sctp_output.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_output.c
==============================================================================
--- stable/9/sys/netinet/sctp_output.c  Thu May 15 20:06:29 2014        
(r266183)
+++ stable/9/sys/netinet/sctp_output.c  Thu May 15 20:08:25 2014        
(r266184)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to