diff options
| author | thorpej <thorpej@NetBSD.org> | 2001-09-11 21:03:20 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2001-09-11 21:03:20 +0000 |
| commit | 050e9de009c01a44dff7ef5555ebe3b32d366174 (patch) | |
| tree | 37a65711a769487b5d6a85e4794c8be32ddd5a0a /sys/netinet/tcp_timer.c | |
| parent | 0f63dc99dc35250eab88ae4ee75772a990f637ac (diff) | |
Use callouts for SYN cache timers, rather than traversing time queues
in tcp_slowtimo().
Diffstat (limited to 'sys/netinet/tcp_timer.c')
| -rw-r--r-- | sys/netinet/tcp_timer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index c1584297f57..3f007274327 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_timer.c,v 1.54 2001/09/10 22:45:46 thorpej Exp $ */ +/* $NetBSD: tcp_timer.c,v 1.55 2001/09/11 21:03:21 thorpej Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -221,17 +221,12 @@ tcp_delack(void *arg) void tcp_slowtimo() { - static int syn_cache_last = 0; int s; s = splsoftnet(); tcp_maxidle = tcp_keepcnt * tcp_keepintvl; tcp_iss_seq += TCP_ISSINCR; /* increment iss */ tcp_now++; /* for timestamps */ - if (++syn_cache_last >= tcp_syn_cache_interval) { - syn_cache_timer(); - syn_cache_last = 0; - } splx(s); } |
