svn commit: r208158 - stable/8/sys/netinet
Randall Stewart
rrs at FreeBSD.org
Sun May 16 16:52:57 UTC 2010
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.
More information about the svn-src-all
mailing list