Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 16:34:28 +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-10@freebsd.org
Subject:   svn commit: r267726 - stable/10/sys/netinet
Message-ID:  <201406221634.s5MGYS0F039551@svn.freebsd.org>

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



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