From owner-cvs-all@FreeBSD.ORG Tue Jul 24 20:06:03 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7470416A418; Tue, 24 Jul 2007 20:06:03 +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 5B32C13C47E; Tue, 24 Jul 2007 20:06:03 +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 l6OK63nS087184; Tue, 24 Jul 2007 20:06:03 GMT (envelope-from rrs@repoman.freebsd.org) Received: (from rrs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6OK63cZ087183; Tue, 24 Jul 2007 20:06:03 GMT (envelope-from rrs) Message-Id: <200707242006.l6OK63cZ087183@repoman.freebsd.org> From: Randall Stewart Date: Tue, 24 Jul 2007 20:06:02 +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/netinet sctp_asconf.c sctp_asconf.h sctp_input.c sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.h sctp_timer.c sctp_usrreq.c sctputil.c sctputil.h src/sys/netinet6 sctp6_usrreq.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 20:06:03 -0000 rrs 2007-07-24 20:06:02 UTC FreeBSD src repository Modified files: lib/libc/net sctp_sys_calls.c sys/netinet sctp_asconf.c sctp_asconf.h sctp_input.c sctp_output.c sctp_pcb.c sctp_pcb.h sctp_structs.h sctp_timer.c sctp_usrreq.c sctputil.c sctputil.h sys/netinet6 sctp6_usrreq.c Log: - take out a needless panic under invariants for sctp_output.c - Fix addrs's error checking of sctp_sendx(3) when addrcnt is less than SCTP_SMALL_IOVEC_SIZE - re-add back inpcb_bind local address check bypass capability - Fix it so sctp_opt_info is independant of assoc_id postion. - Fix cookie life set to use MSEC_TO_TICKS() macro. - asconf changes o More comment changes/clarifications related to the old local address "not" list which is now an explicit restricted list. o Rename some functions for clarity: - sctp_add/del_local_addr_assoc to xxx_local_addr_restricted() - asconf related iterator functions to sctp_asconf_iterator_xxx() o Fix bug when the same address is deleted and added (and removed from the asconf queue) where the ifa is "freed" twice refcount wise, possibly freeing it completely. o Fix bug in output where the first ASCONF would not go out after the last address is changed (e.g. only goes out when retransmitted). o Fix bug where multiple ASCONFs can be bundled in the same packet with the and with the same serial numbers. o Fix asconf stcb iterator to not send ASCONF until after all work queue entries have been processed. o Change behavior so that when the last address is deleted (auto asconf on a bound all endpoint) no action is taken until an address is added; at that time, an ASCONF add+delete is sent (if the assoc is still up). o Fix local address counting so that address scoping is taken into account. o #ifdef SCTP_TIMER_BASED_ASCONF the old timer triggered sending of ASCONF (after an RTO). The default now is to send ASCONF immediately (except for the case of changing/deleting the last usable address). Approved by: re(ken smith)@freebsd.org Revision Changes Path 1.14 +107 -6 src/lib/libc/net/sctp_sys_calls.c 1.23 +203 -99 src/sys/netinet/sctp_asconf.c 1.7 +8 -4 src/sys/netinet/sctp_asconf.h 1.53 +7 -2 src/sys/netinet/sctp_input.c 1.48 +62 -50 src/sys/netinet/sctp_output.c 1.51 +20 -10 src/sys/netinet/sctp_pcb.c 1.27 +3 -4 src/sys/netinet/sctp_pcb.h 1.22 +12 -13 src/sys/netinet/sctp_structs.h 1.25 +13 -15 src/sys/netinet/sctp_timer.c 1.40 +5 -6 src/sys/netinet/sctp_usrreq.c 1.53 +120 -10 src/sys/netinet/sctputil.c 1.26 +2 -0 src/sys/netinet/sctputil.h 1.36 +2 -2 src/sys/netinet6/sctp6_usrreq.c