summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.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_timewait.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_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 591fb40..2a2a5da 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.20 1995/10/16 18:21:20 wollman Exp $
+ * $Id: tcp_subr.c,v 1.21 1995/11/09 20:23:05 phk Exp $
*/
#include <sys/param.h>
@@ -67,20 +67,24 @@
#include <netinet/tcp_debug.h>
#endif
-/* patchable/settable parameters for tcp */
int tcp_mssdflt = TCP_MSS;
SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt,
CTLFLAG_RW, &tcp_mssdflt , 0, "");
-int tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ;
+
+static int tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ;
SYSCTL_INT(_net_inet_tcp, TCPCTL_RTTDFLT, rttdflt,
CTLFLAG_RW, &tcp_rttdflt , 0, "");
-int tcp_do_rfc1323 = 1;
+
+static int tcp_do_rfc1323 = 1;
SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323,
CTLFLAG_RW, &tcp_do_rfc1323 , 0, "");
-int tcp_do_rfc1644 = 1;
+
+static int tcp_do_rfc1644 = 1;
SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1644, rfc1644,
CTLFLAG_RW, &tcp_do_rfc1644 , 0, "");
-static void tcp_cleartaocache(void);
+
+static void tcp_cleartaocache(void);
+static void tcp_notify __P((struct inpcb *, int));
/*
* Target size of TCP PCB hash table. Will be rounded down to a prime
@@ -410,7 +414,7 @@ tcp_drain()
* store error as soft error, but wake up user
* (for now, won't do anything until can select for soft error).
*/
-void
+static void
tcp_notify(inp, error)
struct inpcb *inp;
int error;
OpenPOWER on IntegriCloud