From owner-cvs-src-old@FreeBSD.ORG Mon Aug 24 11:13:43 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E55041065789 for ; Mon, 24 Aug 2009 11:13:43 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D3FD58FC08 for ; Mon, 24 Aug 2009 11:13:43 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7OBDh0c046566 for ; Mon, 24 Aug 2009 11:13:43 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7OBDhbY046565 for cvs-src-old@freebsd.org; Mon, 24 Aug 2009 11:13:43 GMT (envelope-from rrs@repoman.freebsd.org) Message-Id: <200908241113.n7OBDhbY046565@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rrs@repoman.freebsd.org using -f From: Randall Stewart Date: Mon, 24 Aug 2009 11:13:32 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet sctp_indata.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 11:13:44 -0000 rrs 2009-08-24 11:13:32 UTC FreeBSD src repository Modified files: sys/netinet sctp_indata.c Log: SVN rev 196507 on 2009-08-24 11:13:32Z by rrs This fixes two bugs in the NR-Sack code: 1) When calculating the table offset for sliding the sack array, the two byte values must be "ored" together in order for us to do the correct sliding of the arrays. 2) We were NOT properly doing CC and other changes to things only NR-Sacked. The solution here is to make a separate function that will actually do both CC/updates and free things if its NR sack'd. This actually shrinks out common code from three places (much better). MFC after: 3 days Revision Changes Path 1.66 +255 -460 src/sys/netinet/sctp_indata.c