diff options
author | glebius <glebius@FreeBSD.org> | 2006-09-05 14:00:59 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-09-05 14:00:59 +0000 |
commit | f0b3d43b5261d31c29cedcc3308d61d581b4ce37 (patch) | |
tree | 74afb502e8180aa25c5db326fd1fce8a09bf97e9 /sys/netinet/tcp_subr.c | |
parent | 697f63c7e38704080405c88c677160d45505d51f (diff) | |
download | FreeBSD-src-f0b3d43b5261d31c29cedcc3308d61d581b4ce37.zip FreeBSD-src-f0b3d43b5261d31c29cedcc3308d61d581b4ce37.tar.gz |
Finally fix rev. 1.256
Pointy hat to: glebius
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 5563ea4..05451e3 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -177,6 +177,7 @@ static int tcp_isn_reseed_interval = 0; SYSCTL_INT(_net_inet_tcp, OID_AUTO, isn_reseed_interval, CTLFLAG_RW, &tcp_isn_reseed_interval, 0, "Seconds between reseeding of ISN secret"); +static uma_zone_t tcptw_zone; static int maxtcptw; static int sysctl_maxtcptw(SYSCTL_HANDLER_ARGS) @@ -189,9 +190,10 @@ sysctl_maxtcptw(SYSCTL_HANDLER_ARGS) new = maxtcptw; error = sysctl_handle_int(oidp, &new, sizeof(int), req); if (error == 0 && req->newptr) { - if (new > maxtcptw) + if (new > maxtcptw) { maxtcptw = new; - else + uma_zone_set_max(tcptw_zone, maxtcptw); + } else error = EINVAL; } return (error); @@ -261,7 +263,6 @@ struct tcpcb_mem { }; static uma_zone_t tcpcb_zone; -static uma_zone_t tcptw_zone; struct callout isn_callout; static struct mtx isn_mtx; |