summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.h
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2002-03-01 22:29:29 +0000
committerprovos <provos@openbsd.org>2002-03-01 22:29:29 +0000
commit99abd33ffd001838f96697ab3b4f74357db76754 (patch)
tree23d8fb266c3ab4830267b639d2f5fc07ef8b0814 /sys/netinet/tcp_timer.h
parentSort -df, not sort -f (diff)
downloadwireguard-openbsd-99abd33ffd001838f96697ab3b4f74357db76754.tar.xz
wireguard-openbsd-99abd33ffd001838f96697ab3b4f74357db76754.zip
remove tcp_fasttimo and convert delayed acks to the timeout(9) API instead.
adapated from netbsd. okay angelos@
Diffstat (limited to 'sys/netinet/tcp_timer.h')
-rw-r--r--sys/netinet/tcp_timer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h
index 45064e1d9fa..03523dd8f31 100644
--- a/sys/netinet/tcp_timer.h
+++ b/sys/netinet/tcp_timer.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_timer.h,v 1.6 2002/01/14 19:26:10 provos Exp $ */
+/* $OpenBSD: tcp_timer.h,v 1.7 2002/03/01 22:29:29 provos Exp $ */
/* $NetBSD: tcp_timer.h,v 1.6 1995/03/26 20:32:37 jtc Exp $ */
/*
@@ -109,6 +109,8 @@
#define TCP_MAXRXTSHIFT 12 /* maximum retransmits */
+#define TCP_DELACK_TICKS (hz / PR_FASTHZ) /* time to delay ACK */
+
#ifdef TCPTIMERS
char *tcptimers[] =
{ "REXMT", "PERSIST", "KEEP", "2MSL" };
@@ -147,5 +149,7 @@ extern int tcp_keepintvl; /* time between keepalive probes */
extern int tcp_maxidle; /* time to drop after starting probes */
extern int tcp_ttl; /* time to live for TCP segs */
extern int tcp_backoff[];
+
+void tcp_timer_init(void);
#endif /* _KERNEL */
#endif /* _NETINET_TCP_TIMER_H_ */