diff options
author | green <green@FreeBSD.org> | 1999-10-09 20:42:17 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-10-09 20:42:17 +0000 |
commit | f980526bf65a754175b095da7e9c65301bc51ef6 (patch) | |
tree | 3e1f62b2ad258cfb15a9dc0ab325b98c954bd344 /sys/netinet/tcp_input.c | |
parent | 6c88ce2eeea2b938c210bd64566a7712843f017f (diff) | |
download | FreeBSD-src-f980526bf65a754175b095da7e9c65301bc51ef6.zip FreeBSD-src-f980526bf65a754175b095da7e9c65301bc51ef6.tar.gz |
Implement RLIMIT_SBSIZE in the kernel. This is a per-uid sockbuf total
usage limit.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e45c64b..5f61ff3 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2298,7 +2298,7 @@ tcp_mss(tp, offer) bufsize = roundup(bufsize, mss); if (bufsize > sb_max) bufsize = sb_max; - (void)sbreserve(&so->so_snd, bufsize); + (void)sbreserve(&so->so_snd, bufsize, so, NULL); } tp->t_maxseg = mss; @@ -2310,7 +2310,7 @@ tcp_mss(tp, offer) bufsize = roundup(bufsize, mss); if (bufsize > sb_max) bufsize = sb_max; - (void)sbreserve(&so->so_rcv, bufsize); + (void)sbreserve(&so->so_rcv, bufsize, so, NULL); } /* |