Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Dec 2021 17:16:31 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a859e9f9aa25 - main - sctp: apply limit for socket buffers as indicated in comment
Message-ID:  <202112271716.1BRHGVub078056@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=a859e9f9aa258841e988d2f6c5f860048e168923

commit a859e9f9aa258841e988d2f6c5f860048e168923
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-12-27 17:15:29 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2021-12-27 17:15:29 +0000

    sctp: apply limit for socket buffers as indicated in comment
    
    MFC after:      3 days
---
 sys/netinet/sctp_usrreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index c5c45a2f2072..f218950feef9 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -73,7 +73,7 @@ sctp_init(void)
 	 */
 	sb_max_adj = (u_long)((u_quad_t)(SB_MAX) * MCLBYTES / (MSIZE + MCLBYTES));
 	SCTP_BASE_SYSCTL(sctp_sendspace) = min(sb_max_adj,
-	    (((uint32_t)nmbclusters / 2) * SCTP_DEFAULT_MAXSEGMENT));
+	    (((uint32_t)nmbclusters / 2) * MCLBYTES));
 	/*
 	 * Now for the recv window, should we take the same amount? or
 	 * should I do 1/2 the SB_MAX instead in the SB_MAX min above. For



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112271716.1BRHGVub078056>