summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_usrreq.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-12-04 20:20:42 +0000
committerrrs <rrs@FreeBSD.org>2007-12-04 20:20:42 +0000
commit9e75c558ad28621d920802560562b31369202c17 (patch)
treef2a3355d296c6ea9fbd216bfdf4747a1f575ca5c /sys/netinet/sctp_usrreq.c
parent411cf00f62aebdc2ae138f2e75b1a75811fd1210 (diff)
downloadFreeBSD-src-9e75c558ad28621d920802560562b31369202c17.zip
FreeBSD-src-9e75c558ad28621d920802560562b31369202c17.tar.gz
- More fixes for the non-blocking msg send, had the skip of the pre-block
test incorrect. - Fix the initial buf calculation to be more friendly, calc is the same but we use different variable to make it easier amongst the different code versions. MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r--sys/netinet/sctp_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 070c9a7..aea2db5 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -70,7 +70,7 @@ sctp_init(void)
* the SB_MAX whichever is smaller for the send window.
*/
sb_max_adj = (u_long)((u_quad_t) (SB_MAX) * MCLBYTES / (MSIZE + MCLBYTES));
- sctp_sendspace = min((min(SB_MAX, sb_max_adj)),
+ sctp_sendspace = min(sb_max_adj,
(((uint32_t) nmbclusters / 2) * SCTP_DEFAULT_MAXSEGMENT));
/*
* Now for the recv window, should we take the same amount? or
OpenPOWER on IntegriCloud