Date: Wed, 12 May 2010 18:33:25 +0000 (UTC) From: Randall Stewart <rrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r207985 - head/sys/netinet Message-ID: <201005121833.o4CIXPHH089135@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rrs Date: Wed May 12 18:33:25 2010 New Revision: 207985 URL: http://svn.freebsd.org/changeset/base/207985 Log: 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. MFC after: 3 days Modified: head/sys/netinet/sctp_output.c Modified: head/sys/netinet/sctp_output.c ============================================================================== --- head/sys/netinet/sctp_output.c Wed May 12 18:16:08 2010 (r207984) +++ head/sys/netinet/sctp_output.c Wed May 12 18:33:25 2010 (r207985) @@ -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?201005121833.o4CIXPHH089135>