Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2010 16:52:56 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r208158 - stable/8/sys/netinet
Message-ID:  <201005161652.o4GGqulW059212@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Sun May 16 16:52:56 2010
New Revision: 208158
URL: http://svn.freebsd.org/changeset/base/208158

Log:
  MFC 207985
  
   Fix an old long time bug in generating a
   fwd-tsn. This would appear when greater than
   the size of mbuf TSN's would need to be skipped.

Modified:
  stable/8/sys/netinet/sctp_output.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/netinet/sctp_output.c
==============================================================================
--- stable/8/sys/netinet/sctp_output.c	Sun May 16 16:51:44 2010	(r208157)
+++ stable/8/sys/netinet/sctp_output.c	Sun May 16 16:52:56 2010	(r208158)
@@ -9775,9 +9775,8 @@ sctp_fill_in_rest:
 				    0xff, 0xff, cnt_of_space,
 				    space_needed);
 			}
-			cnt_of_skipped = (cnt_of_space -
-			    ((sizeof(struct sctp_forward_tsn_chunk)) /
-			    sizeof(struct sctp_strseq)));
+			cnt_of_skipped = cnt_of_space - sizeof(struct sctp_forward_tsn_chunk);
+			cnt_of_skipped /= sizeof(struct sctp_strseq);
 			/*-
 			 * Go through and find the TSN that will be the one
 			 * we report.



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