summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_indata.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2006-11-05 13:25:18 +0000
committerrrs <rrs@FreeBSD.org>2006-11-05 13:25:18 +0000
commit20dc61d3a46238522e738dd8dde26965d5ce46dd (patch)
tree0917b677ec5366916adb9fc52ff977feb016deb1 /sys/netinet/sctp_indata.c
parent21ab4f8a250dc1903e52406d7a88f2bc912fb733 (diff)
downloadFreeBSD-src-20dc61d3a46238522e738dd8dde26965d5ce46dd.zip
FreeBSD-src-20dc61d3a46238522e738dd8dde26965d5ce46dd.tar.gz
Tons of fixes to get all the 64bit issues removed.
This also moves two 16 bit int's to become 32 bit values so we do not have to use atomic_add_16. Most of the changes are %p, casts and other various nasty's that were in the orignal code base. With this commit my machine will now do a build universe.. however I as yet have not tested on a 64bit machine .. it may not work :-(
Diffstat (limited to 'sys/netinet/sctp_indata.c')
-rw-r--r--sys/netinet/sctp_indata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index 5b22770..bbb26e9 100644
--- a/sys/netinet/sctp_indata.c
+++ b/sys/netinet/sctp_indata.c
@@ -3760,7 +3760,7 @@ struct sctp_hs_raise_drop sctp_cwnd_adjust[SCTP_HS_TABLE_SIZE] = {
};
static void
-sctp_hs_cwnd_increase(struct sctp_nets *net)
+sctp_hs_cwnd_increase(struct sctp_tcb *stcb, struct sctp_nets *net)
{
int cur_val, i, indx, incr;
@@ -3797,7 +3797,7 @@ sctp_hs_cwnd_increase(struct sctp_nets *net)
}
static void
-sctp_hs_cwnd_decrease(struct sctp_nets *net)
+sctp_hs_cwnd_decrease(struct sctp_tcb *stcb, struct sctp_nets *net)
{
int cur_val, i, indx;
@@ -3958,7 +3958,7 @@ sctp_cwnd_update(struct sctp_tcb *stcb,
if (net->flight_size + net->net_ack >=
net->cwnd) {
#ifdef SCTP_HIGH_SPEED
- sctp_hs_cwnd_increase(net);
+ sctp_hs_cwnd_increase(stcb, net);
#else
if (net->net_ack > (net->mtu * sctp_L2_abc_variable)) {
net->cwnd += (net->mtu * sctp_L2_abc_variable);
@@ -5062,7 +5062,7 @@ done_with_it:
struct sctp_tmit_chunk *lchk;
#ifdef SCTP_HIGH_SPEED
- sctp_hs_cwnd_decrease(net);
+ sctp_hs_cwnd_decrease(stcb, net);
#else
#ifdef SCTP_CWND_MONITOR
int old_cwnd = net->cwnd;
OpenPOWER on IntegriCloud