git: a859e9f9aa25 - main - sctp: apply limit for socket buffers as indicated in comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Dec 2021 17:16:31 UTC
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