diff options
author | phk <phk@FreeBSD.org> | 1995-11-09 20:23:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-11-09 20:23:09 +0000 |
commit | c1dbd5b37790b10eff4f18af33308b8a0b1caa8b (patch) | |
tree | 9ededac9bb9b283998f81bf211bee38acc4a8e4b /sys/netinet/tcp_timer.c | |
parent | 1eeb24475eddba5b40adce284c823310245f1ee1 (diff) | |
download | FreeBSD-src-c1dbd5b37790b10eff4f18af33308b8a0b1caa8b.zip FreeBSD-src-c1dbd5b37790b10eff4f18af33308b8a0b1caa8b.tar.gz |
Start adding new style sysctl here too.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index bfab342..4db44cf 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -31,12 +31,14 @@ * SUCH DAMAGE. * * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 - * $Id: tcp_timer.c,v 1.9 1995/10/03 16:54:17 wollman Exp $ + * $Id: tcp_timer.c,v 1.10 1995/11/03 22:19:50 olah Exp $ */ #ifndef TUBA_INCLUDE #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> +#include <sys/sysctl.h> #include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/socket.h> @@ -63,7 +65,13 @@ #include <netinet/tcpip.h> int tcp_keepidle = TCPTV_KEEP_IDLE; +SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle, + CTLFLAG_RW, &tcp_keepidle , 0, ""); + int tcp_keepintvl = TCPTV_KEEPINTVL; +SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPINTVL, keepintvl, + CTLFLAG_RW, &tcp_keepintvl , 0, ""); + int tcp_keepcnt = TCPTV_KEEPCNT; /* max idle probes */ int tcp_maxpersistidle = TCPTV_KEEP_IDLE; /* max idle time in persist */ int tcp_maxidle; |