summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-14 20:34:56 +0000
committerphk <phk@FreeBSD.org>1995-11-14 20:34:56 +0000
commitdb2c71245d8bd7171d58bbd567c7a24804e752e5 (patch)
treea91ff9513241da82a53d78f1c48939ef8d27e64e /sys/netinet/tcp_timer.c
parent23272197e79604fbed29e23e977678742f10c46c (diff)
downloadFreeBSD-src-db2c71245d8bd7171d58bbd567c7a24804e752e5.zip
FreeBSD-src-db2c71245d8bd7171d58bbd567c7a24804e752e5.tar.gz
New style sysctl & staticize alot of stuff.
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 4db44cf..23068b7 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.10 1995/11/03 22:19:50 olah Exp $
+ * $Id: tcp_timer.c,v 1.11 1995/11/09 20:23:07 phk Exp $
*/
#ifndef TUBA_INCLUDE
@@ -68,16 +68,18 @@ int tcp_keepidle = TCPTV_KEEP_IDLE;
SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle,
CTLFLAG_RW, &tcp_keepidle , 0, "");
-int tcp_keepintvl = TCPTV_KEEPINTVL;
+static 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 */
+static int tcp_keepcnt = TCPTV_KEEPCNT;
+ /* max idle probes */
+static int tcp_maxpersistidle = TCPTV_KEEP_IDLE;
+ /* max idle time in persist */
int tcp_maxidle;
#else /* TUBA_INCLUDE */
-extern int tcp_maxpersistidle;
+static int tcp_maxpersistidle;
#endif /* TUBA_INCLUDE */
/*
@@ -175,7 +177,7 @@ tcp_canceltimers(tp)
int tcp_backoff[TCP_MAXRXTSHIFT + 1] =
{ 1, 2, 4, 8, 16, 32, 64, 64, 64, 64, 64, 64, 64 };
-int tcp_totbackoff = 511; /* sum of tcp_backoff[] */
+static int tcp_totbackoff = 511; /* sum of tcp_backoff[] */
/*
* TCP timer processing.
OpenPOWER on IntegriCloud