diff options
author | pst <pst@FreeBSD.org> | 1996-09-13 23:51:44 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-09-13 23:51:44 +0000 |
commit | 460ca264a35697912ee6892edf43493bc7037685 (patch) | |
tree | 9a4c6784e5101afa9ee7f4c8c86e2355d2a13483 /sys/netinet/tcp_timer.c | |
parent | aa0bf1e119360aec199b9032cc73b4ad92f3b4a1 (diff) | |
download | FreeBSD-src-460ca264a35697912ee6892edf43493bc7037685.zip FreeBSD-src-460ca264a35697912ee6892edf43493bc7037685.tar.gz |
Make the misnamed tcp initial keepalive timer value (which is really the
time, in seconds, that state for non-established TCP sessions stays about)
a sysctl modifyable variable.
[part 1 of two commits, I just realized I can't play with the indices as
I was typing this commit message.]
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 73396b3..fd477b9 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_timer.c,v 1.18 1996/07/11 16:32:35 wollman Exp $ + * $Id: tcp_timer.c,v 1.19 1996/07/12 17:28:46 davidg Exp $ */ #ifndef TUBA_INCLUDE @@ -67,6 +67,10 @@ #include <netinet/tcp_debug.h> #endif +int tcp_keepinit = TCPTV_KEEP_INIT; +SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPINIT, keepinit, + CTLFLAG_RW, &tcp_keepinit , 0, ""); + int tcp_keepidle = TCPTV_KEEP_IDLE; SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle, CTLFLAG_RW, &tcp_keepidle , 0, ""); |