From owner-cvs-src@FreeBSD.ORG Fri Dec 29 20:21:43 2006 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 58A6316A554; Fri, 29 Dec 2006 20:21:43 +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 472BF13C484; Fri, 29 Dec 2006 20:21:43 +0000 (UTC) (envelope-from rrs@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBTKLgbU021005; Fri, 29 Dec 2006 20:21:42 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBTKLgLp021004; Fri, 29 Dec 2006 20:21:42 GMT (envelope-from rrs) Message-Id: <200612292021.kBTKLgLp021004@repoman.freebsd.org> From: Randall Stewart Date: Fri, 29 Dec 2006 20:21:42 +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/sys/netinet sctp_asconf.c sctp_asconf.h sctp_auth.c sctp_bsd_addr.c sctp_indata.c sctp_input.c sctp_os.h sctp_os_bsd.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.h sctp_timer.c sctp_usrreq.c sctp_var.h sctputil.c src/sys/netinet6 ... 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: Fri, 29 Dec 2006 20:21:43 -0000 rrs 2006-12-29 20:21:42 UTC FreeBSD src repository Modified files: sys/netinet sctp_asconf.c sctp_asconf.h sctp_auth.c sctp_bsd_addr.c sctp_indata.c sctp_input.c sctp_os.h sctp_os_bsd.h sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.h sctp_timer.c sctp_usrreq.c sctp_var.h sctputil.c sys/netinet6 sctp6_usrreq.c Log: a) macro-ization of all mbuf and random number access plus timers. This makes the code more portable and able to change out the mbuf or timer system used more easily ;-) b) removal of all use of pkt-hdr's until only the places we need them (before ip_output routines). c) remove a bunch of code not needed due to aka worrying about pkthdr's :-) d) There was one last reorder problem it looks where if a restart occur's and we release and relock (at the point where we setup our alias vtag) we would end up possibly getting the wrong TSN in place. The code that fixed the TSN's just needed to be shifted around BEFORE the release of the lock.. also code that set the state (since this also could contribute). Approved by: gnn Revision Changes Path 1.5 +22 -25 src/sys/netinet/sctp_asconf.c 1.2 +4 -3 src/sys/netinet/sctp_asconf.h 1.2 +25 -25 src/sys/netinet/sctp_auth.c 1.3 +8 -9 src/sys/netinet/sctp_bsd_addr.c 1.6 +192 -132 src/sys/netinet/sctp_indata.c 1.10 +64 -107 src/sys/netinet/sctp_input.c 1.3 +1 -5 src/sys/netinet/sctp_os.h 1.4 +67 -2 src/sys/netinet/sctp_os_bsd.h 1.8 +423 -542 src/sys/netinet/sctp_output.c 1.9 +47 -55 src/sys/netinet/sctp_pcb.c 1.3 +0 -1 src/sys/netinet/sctp_pcb.h 1.5 +5 -3 src/sys/netinet/sctp_structs.h 1.5 +9 -10 src/sys/netinet/sctp_timer.c 1.8 +120 -127 src/sys/netinet/sctp_usrreq.c 1.2 +39 -41 src/sys/netinet/sctp_var.h 1.10 +182 -228 src/sys/netinet/sctputil.c 1.7 +14 -26 src/sys/netinet6/sctp6_usrreq.c