Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2014 20:08:25 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r266184 - stable/9/sys/netinet
Message-ID:  <201405152008.s4FK8PEf079003@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405152008.s4FK8PEf079003>