diff options
author | rrs <rrs@FreeBSD.org> | 2010-05-12 18:33:25 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2010-05-12 18:33:25 +0000 |
commit | f5c91155a560bf75a66a506dd22b156a52e6ec76 (patch) | |
tree | 79ae5a50d3db03ebaa4ffa6dcdcda6780117db27 | |
parent | 3c1a227e65b054f71868de11136d293b53010c23 (diff) | |
download | FreeBSD-src-f5c91155a560bf75a66a506dd22b156a52e6ec76.zip FreeBSD-src-f5c91155a560bf75a66a506dd22b156a52e6ec76.tar.gz |
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
-rw-r--r-- | sys/netinet/sctp_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 522b52f..96a4575 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -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. |