summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2007-04-11 14:08:42 +0000
committerru <ru@FreeBSD.org>2007-04-11 14:08:42 +0000
commit69c130ff3d4c3d699ce33714e606f0b6f7f4c1d9 (patch)
treee5895d449e4b0c8d62c144804c4032a64e4f7c6d /sys/netinet/tcp_timer.h
parent081fdb71d770c861e7e045452061a36c8fe2f9a4 (diff)
downloadFreeBSD-src-69c130ff3d4c3d699ce33714e606f0b6f7f4c1d9.zip
FreeBSD-src-69c130ff3d4c3d699ce33714e606f0b6f7f4c1d9.tar.gz
Make "struct tcp_timer" visible only to the kernel, and unbreak world.
Diffstat (limited to 'sys/netinet/tcp_timer.h')
-rw-r--r--sys/netinet/tcp_timer.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h
index 1c801ad..e723ea3 100644
--- a/sys/netinet/tcp_timer.h
+++ b/sys/netinet/tcp_timer.h
@@ -128,6 +128,19 @@ static const char *tcptimers[] =
{ "REXMT", "PERSIST", "KEEP", "2MSL" };
#endif
+/*
+ * Force a time value to be in a certain range.
+ */
+#define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \
+ (tv) = (value) + tcp_rexmit_slop; \
+ if ((u_long)(tv) < (u_long)(tvmin)) \
+ (tv) = (tvmin); \
+ if ((u_long)(tv) > (u_long)(tvmax)) \
+ (tv) = (tvmax); \
+} while(0)
+
+#ifdef _KERNEL
+
struct tcp_timer {
struct callout tt_timer;
int tt_nextc; /* next callout time in time_uptime */
@@ -144,18 +157,6 @@ struct tcp_timer {
int tt_2msl;
};
-/*
- * Force a time value to be in a certain range.
- */
-#define TCPT_RANGESET(tv, value, tvmin, tvmax) do { \
- (tv) = (value) + tcp_rexmit_slop; \
- if ((u_long)(tv) < (u_long)(tvmin)) \
- (tv) = (tvmin); \
- if ((u_long)(tv) > (u_long)(tvmax)) \
- (tv) = (tvmax); \
-} while(0)
-
-#ifdef _KERNEL
extern int tcp_keepinit; /* time to establish connection */
extern int tcp_keepidle; /* time before keepalive probes begin */
extern int tcp_keepintvl; /* time between keepalive probes */
OpenPOWER on IntegriCloud