diff options
author | hiren <hiren@FreeBSD.org> | 2016-01-28 21:30:49 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2016-01-28 21:30:49 +0000 |
commit | 07d36c1f7c56a074d717e2d90c58cc69397847df (patch) | |
tree | 0929ccb75fbbc1259a9fae616ca387c5842eaaac /sys/netinet/tcp_timer.c | |
parent | 85e080cffe32ec9cd2b5b5c9c4f9f8e9b41d4fb9 (diff) | |
download | FreeBSD-src-07d36c1f7c56a074d717e2d90c58cc69397847df.zip FreeBSD-src-07d36c1f7c56a074d717e2d90c58cc69397847df.tar.gz |
MFC r294840
Persist timers TCPTV_PERSMIN and TCPTV_PERSMAX are hardcoded with 5 seconds and
60 seconds, respectively. Turn them into sysctls that can be tuned live. The
default values of 5 seconds and 60 seconds have been retained.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index c66cb76..d721039 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -71,6 +71,14 @@ __FBSDID("$FreeBSD$"); #include <netinet/tcp_debug.h> #endif +int tcp_persmin; +SYSCTL_PROC(_net_inet_tcp, OID_AUTO, persmin, CTLTYPE_INT|CTLFLAG_RW, + &tcp_persmin, 0, sysctl_msec_to_ticks, "I", "minimum persistence interval"); + +int tcp_persmax; +SYSCTL_PROC(_net_inet_tcp, OID_AUTO, persmax, CTLTYPE_INT|CTLFLAG_RW, + &tcp_persmax, 0, sysctl_msec_to_ticks, "I", "maximum persistence interval"); + int tcp_keepinit; SYSCTL_PROC(_net_inet_tcp, TCPCTL_KEEPINIT, keepinit, CTLTYPE_INT|CTLFLAG_RW, &tcp_keepinit, 0, sysctl_msec_to_ticks, "I", "time to establish connection"); |