summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-12-23 01:25:59 +0000
committerrwatson <rwatson@FreeBSD.org>2004-12-23 01:25:59 +0000
commit44b000390e898085a88159e0c1f5cea2bd97986f (patch)
treeb7a7a1bda3928590f7e918b837101f1ec3d6c75a /sys/netinet
parentf55e651b2579de6eaec7f478f290b629bc305bc6 (diff)
downloadFreeBSD-src-44b000390e898085a88159e0c1f5cea2bd97986f.zip
FreeBSD-src-44b000390e898085a88159e0c1f5cea2bd97986f.tar.gz
Remove the now unused tcp_canceltimers() function. tcpcb timers are
now stopped as part of tcp_discardcb(). MFC after: 2 weeks
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_timer.c15
-rw-r--r--sys/netinet/tcp_var.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 80fd03c..0a84259 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -137,21 +137,6 @@ tcp_slowtimo()
INP_INFO_WUNLOCK(&tcbinfo);
}
-/*
- * Cancel all timers for TCP tp.
- *
- * XXXRW: This appears to be unused.
- */
-void
-tcp_canceltimers(tp)
- struct tcpcb *tp;
-{
- callout_stop(tp->tt_2msl);
- callout_stop(tp->tt_persist);
- callout_stop(tp->tt_keep);
- callout_stop(tp->tt_rexmt);
-}
-
int tcp_syn_backoff[TCP_MAXRXTSHIFT + 1] =
{ 1, 1, 1, 1, 1, 2, 4, 8, 16, 32, 64, 64, 64 };
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 8dbf4a5..0e394f5f 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -507,7 +507,6 @@ extern int ss_fltsz_local;
extern int tcp_do_sack; /* SACK enabled/disabled */
-void tcp_canceltimers(struct tcpcb *);
struct tcpcb *
tcp_close(struct tcpcb *);
void tcp_twstart(struct tcpcb *);
OpenPOWER on IntegriCloud