sctp_input.c (170181) | sctp_input.c (170428) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_input.c,v 1.27 2005/03/06 16:04:17 itojun Exp $ */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_input.c,v 1.27 2005/03/06 16:04:17 itojun Exp $ */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 170181 2007-06-01 11:19:54Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_input.c 170428 2007-06-08 10:57:11Z rrs $"); |
35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_sysctl.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctputil.h> 42#include <netinet/sctp_output.h> --- 2271 unchanged lines hidden (view full) --- 2314 2315 old_cwnd = net->cwnd; 2316#endif 2317 SCTP_STAT_INCR(sctps_ecnereducedcwnd); 2318 net->ssthresh = net->cwnd / 2; 2319 if (net->ssthresh < net->mtu) { 2320 net->ssthresh = net->mtu; 2321 /* here back off the timer as well, to slow us down */ | 35 36#include <netinet/sctp_os.h> 37#include <netinet/sctp_var.h> 38#include <netinet/sctp_sysctl.h> 39#include <netinet/sctp_pcb.h> 40#include <netinet/sctp_header.h> 41#include <netinet/sctputil.h> 42#include <netinet/sctp_output.h> --- 2271 unchanged lines hidden (view full) --- 2314 2315 old_cwnd = net->cwnd; 2316#endif 2317 SCTP_STAT_INCR(sctps_ecnereducedcwnd); 2318 net->ssthresh = net->cwnd / 2; 2319 if (net->ssthresh < net->mtu) { 2320 net->ssthresh = net->mtu; 2321 /* here back off the timer as well, to slow us down */ |
2322 net->RTO <<= 2; | 2322 net->RTO <<= 1; |
2323 } 2324 net->cwnd = net->ssthresh; 2325#ifdef SCTP_CWND_MONITOR 2326 sctp_log_cwnd(stcb, net, (net->cwnd - old_cwnd), SCTP_CWND_LOG_FROM_SAT); 2327#endif 2328 /* 2329 * we reduce once every RTT. So we will only lower cwnd at 2330 * the next sending seq i.e. the resync_tsn. --- 2584 unchanged lines hidden --- | 2323 } 2324 net->cwnd = net->ssthresh; 2325#ifdef SCTP_CWND_MONITOR 2326 sctp_log_cwnd(stcb, net, (net->cwnd - old_cwnd), SCTP_CWND_LOG_FROM_SAT); 2327#endif 2328 /* 2329 * we reduce once every RTT. So we will only lower cwnd at 2330 * the next sending seq i.e. the resync_tsn. --- 2584 unchanged lines hidden --- |