From owner-cvs-src@FreeBSD.ORG Sat Jul 14 09:36:29 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3FB016A401; Sat, 14 Jul 2007 09:36:29 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 984F113C47E; Sat, 14 Jul 2007 09:36:29 +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 l6E9aTQI058950; Sat, 14 Jul 2007 09:36:29 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6E9aTfP058949; Sat, 14 Jul 2007 09:36:29 GMT (envelope-from rrs) Message-Id: <200707140936.l6E9aTfP058949@repoman.freebsd.org> From: Randall Stewart Date: Sat, 14 Jul 2007 09:36:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/net sctp_sys_calls.c src/sys/conf files options src/sys/netinet sctp.h sctp_asconf.c sctp_cc_functions.c sctp_cc_functions.h sctp_constants.h sctp_indata.c sctp_input.c sctp_os.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.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: Sat, 14 Jul 2007 09:36:29 -0000 rrs 2007-07-14 09:36:28 UTC FreeBSD src repository Modified files: lib/libc/net sctp_sys_calls.c sys/conf files options sys/netinet sctp.h sctp_asconf.c sctp_constants.h sctp_indata.c sctp_input.c sctp_os.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.h sctp_sysctl.c sctp_sysctl.h sctp_timer.c sctp_timer.h sctp_usrreq.c sctp_var.h sctputil.c sys/netinet6 sctp6_usrreq.c Added files: sys/netinet sctp_cc_functions.c sctp_cc_functions.h Log: - Modular congestion control, with RFC2581 being the default. - CMT_PF states added (w/sysctl to turn the PF version on) - sctp_input.c had a missing incr of cookie case when the auth was bad. This meant a free was called without an increment to refcnt, added increment like rest of code. - There was a case, unlikely, when the scope of the destination changed (this is a TSNH case). In that case, it would not free the alloc'ed asoc (in sctp_input.c). - When listed addresses found a colliding cookie/Init, then the collided upon tcb was not unlocked in sctp_pcb.c - Add error checking on arguments of sctp_sendx(3) to prevent it from referencing a NULL pointer. - Fix an error return of sctp_sendx(3), it was returing ENOMEM not -1. - Get assoc id was changed to use the sanctified socket api method for getting a assoc id (PEER_ADDR_INFO instead of PEER_ADDR_PARAMS). - Fix it so a peeled off socket will get a proper error return if it trys to send to a different address then it is connected to. - Fix so that select_a_stream can avoid an endless loop that could hang a caller. - time_entered (state set time) was not being set in all cases to the time we went established. Approved by: re(ken smith) Revision Changes Path 1.13 +13 -7 src/lib/libc/net/sctp_sys_calls.c 1.1237 +1 -0 src/sys/conf/files 1.601 +0 -1 src/sys/conf/options 1.16 +12 -0 src/sys/netinet/sctp.h 1.20 +1 -1 src/sys/netinet/sctp_asconf.c 1.1 +1631 -0 src/sys/netinet/sctp_cc_functions.c (new) 1.1 +107 -0 src/sys/netinet/sctp_cc_functions.h (new) 1.23 +7 -0 src/sys/netinet/sctp_constants.h 1.37 +21 -469 src/sys/netinet/sctp_indata.c 1.50 +87 -149 src/sys/netinet/sctp_input.c 1.8 +0 -1 src/sys/netinet/sctp_os.h 1.45 +160 -41 src/sys/netinet/sctp_output.c 1.48 +18 -34 src/sys/netinet/sctp_pcb.c 1.24 +1 -3 src/sys/netinet/sctp_pcb.h 1.20 +81 -4 src/sys/netinet/sctp_structs.h 1.12 +11 -0 src/sys/netinet/sctp_sysctl.c 1.8 +27 -3 src/sys/netinet/sctp_sysctl.h 1.23 +208 -63 src/sys/netinet/sctp_timer.c 1.5 +1 -1 src/sys/netinet/sctp_timer.h 1.37 +129 -2 src/sys/netinet/sctp_usrreq.c 1.15 +31 -16 src/sys/netinet/sctp_var.h 1.51 +83 -2 src/sys/netinet/sctputil.c 1.33 +3 -3 src/sys/netinet6/sctp6_usrreq.c