summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2001-03-27 05:28:30 +0000
committersimokawa <simokawa@FreeBSD.org>2001-03-27 05:28:30 +0000
commit37504f69c9fd5f7dee2b8de312ee783f169777a9 (patch)
treed243d437b0d49e0d76a8e159931ec89b506bb940
parent7c1edc42aa80889aeac1b223afc1b13d4ba8a2ff (diff)
downloadFreeBSD-src-37504f69c9fd5f7dee2b8de312ee783f169777a9.zip
FreeBSD-src-37504f69c9fd5f7dee2b8de312ee783f169777a9.tar.gz
Replace dyn_fin_lifetime with dyn_ack_lifetime for half-closed state.
Half-closed state could last long for some connections and fin_lifetime (default 20sec) is too short for that. OK'ed by: luigi
-rw-r--r--sys/netinet/ip_fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index f87b8ef..e0f4378 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -765,7 +765,7 @@ found:
case TH_SYN | (TH_SYN << 8) | TH_FIN :
case TH_SYN | (TH_SYN << 8) | (TH_FIN << 8) :
/* one side tries to close */
- q->expire = time_second + dyn_fin_lifetime ;
+ q->expire = time_second + dyn_ack_lifetime ;
break ;
case TH_SYN | (TH_SYN << 8) | TH_FIN | (TH_FIN << 8) :
/* both sides closed */
OpenPOWER on IntegriCloud