Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2014 18:38:04 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264017 - head/sys/netinet
Message-ID:  <201404011838.s31Ic4Tj020577@svn.freebsd.org>

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



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