summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_cc_functions.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2011-02-03 19:22:21 +0000
committerrrs <rrs@FreeBSD.org>2011-02-03 19:22:21 +0000
commit45cdff3dd8dfb77457ff6dd2d900658a98f5c723 (patch)
treee5e22bfb283c319a0287d984548f6b8bb725fcf1 /sys/netinet/sctp_cc_functions.c
parent1ff02faff3610173bf0703cd8a1ee050e8e3abf7 (diff)
downloadFreeBSD-src-45cdff3dd8dfb77457ff6dd2d900658a98f5c723.zip
FreeBSD-src-45cdff3dd8dfb77457ff6dd2d900658a98f5c723.tar.gz
1) Move per John Baldwin to mp_maxid
2) Some signed/unsigned errors found by Mac OS compiler (from Michael) 3) a couple of copyright updates on the effected files. MFC after: 3 months
Diffstat (limited to 'sys/netinet/sctp_cc_functions.c')
-rw-r--r--sys/netinet/sctp_cc_functions.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/sctp_cc_functions.c b/sys/netinet/sctp_cc_functions.c
index d9cf609..c6646e2 100644
--- a/sys/netinet/sctp_cc_functions.c
+++ b/sys/netinet/sctp_cc_functions.c
@@ -1,5 +1,8 @@
/*-
* Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
+ * Copyright (c) 2008-2011, by Randall Stewart, rrs@lakerest.net and
+ * Michael Tuexen, tuexen@fh-muenster.de
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -375,8 +378,6 @@ sctp_cwnd_update_after_sack(struct sctp_tcb *stcb,
}
} else {
/* We are in congestion avoidance */
- uint32_t incr;
-
/*
* Add to pba
*/
@@ -514,7 +515,8 @@ sctp_cwnd_update_after_packet_dropped(struct sctp_tcb *stcb,
uint32_t * bottle_bw, uint32_t * on_queue)
{
uint32_t bw_avail;
- int rtt, incr;
+ int rtt;
+ unsigned int incr;
int old_cwnd = net->cwnd;
/* need real RTT for this calc */
OpenPOWER on IntegriCloud