summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.h
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2003-03-08 22:06:20 +0000
committerjlemon <jlemon@FreeBSD.org>2003-03-08 22:06:20 +0000
commit03b8ace4891ef0ac6e1d27e79b9464022ed5fba0 (patch)
tree86b7ff103cc19bffc08502fceb82fff6fc3c8d83 /sys/netinet/tcp_timer.h
parent3cab7a88ab3bf9db32f46801047c9350030d5e77 (diff)
downloadFreeBSD-src-03b8ace4891ef0ac6e1d27e79b9464022ed5fba0.zip
FreeBSD-src-03b8ace4891ef0ac6e1d27e79b9464022ed5fba0.tar.gz
Remove a panic(); if the zone allocator can't provide more timewait
structures, reuse the oldest one. Also move the expiry timer from a per-structure callout to the tcp slow timer. Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/netinet/tcp_timer.h')
-rw-r--r--sys/netinet/tcp_timer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h
index 40080b7..9b62b6f 100644
--- a/sys/netinet/tcp_timer.h
+++ b/sys/netinet/tcp_timer.h
@@ -151,8 +151,14 @@ extern int tcp_msl;
extern int tcp_ttl; /* time to live for TCP segs */
extern int tcp_backoff[];
+struct tcptw;
+
+void tcp_timer_init(void);
void tcp_timer_2msl(void *xtp);
-void tcp_timer_2msl_tw(void *xtw); /* XXX temporary */
+struct tcptw *
+ tcp_timer_2msl_tw(int _reuse); /* XXX temporary */
+void tcp_timer_2msl_reset(struct tcptw *_tw, int _timeo);
+void tcp_timer_2msl_stop(struct tcptw *_tw);
void tcp_timer_keep(void *xtp);
void tcp_timer_persist(void *xtp);
void tcp_timer_rexmt(void *xtp);
OpenPOWER on IntegriCloud