From owner-cvs-src@FreeBSD.ORG Tue Nov 6 02:48:05 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1778916A418; Tue, 6 Nov 2007 02:48:05 +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 EF76013C4BC; Tue, 6 Nov 2007 02:48:04 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA62m4Pj074892; Tue, 6 Nov 2007 02:48:04 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA62m4gx074891; Tue, 6 Nov 2007 02:48:04 GMT (envelope-from rrs) Message-Id: <200711060248.lA62m4gx074891@repoman.freebsd.org> From: Randall Stewart Date: Tue, 6 Nov 2007 02:48:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/netinet sctp_constants.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_usrreq.c sctputil.c sctputil.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 02:48:05 -0000 rrs 2007-11-06 02:48:04 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/netinet sctp_constants.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_usrreq.c sctputil.c sctputil.h Log: - Change the Time Wait of vtags value to match the cookie-life - Select a tag gains ability to optionally save new tags off in the timewait system. - When looking up associations do not give back a stcb that is in the about-to-be-freed state, and instead continue looking for other candiates. - New function to query to see if value is in time-wait. - Timewait had a time comparison error that caused very few vtags to actually stay in time-wait. - When setting tags in time-wait, we now use the time requested NOT a fixed constant value. - sstat now gets the proper associd when we do the query. - When we process an association, we expect the tag chosen (if we have one from a cookie) to be in time-wait. Before we would NOT allow the assoc up by checking if its good. In theory this should have caused almost all assoc not to come up except for the time-comparison bug above (this bug was hidden by the time comparison bug :-D). - Don't save tags for nonce values in the time-wait cache since these are used only during cookie collisions and do not matter if they are unique or not. Approved by: re@freeBSD.org (Ken Smith) Revision Changes Path 1.32.2.2 +2 -3 src/sys/netinet/sctp_constants.h 1.58.2.2 +2 -2 src/sys/netinet/sctp_output.c 1.62.2.2 +57 -9 src/sys/netinet/sctp_pcb.c 1.31.2.1 +3 -1 src/sys/netinet/sctp_pcb.h 1.48.2.2 +1 -0 src/sys/netinet/sctp_usrreq.c 1.65.2.2 +12 -6 src/sys/netinet/sctputil.c 1.29.2.1 +1 -1 src/sys/netinet/sctputil.h