diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2001-09-30 03:49:19 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2001-09-30 03:49:19 +0000 |
commit | 9282c7dbcfdf9ac66648d17cdc8c89d4cd7be4a0 (patch) | |
tree | e7e453491b5b478010eaf7a9d3fc20436fe44708 | |
parent | 0ff3e6e7c69bca5dd88be7c2caef07cb2d36b083 (diff) |
Tune TCP fsm (99.7% - 99.9% accuracy over 1e6 connections)
-rw-r--r-- | sys/net/pf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index e695f369413..a6057cf1d6d 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.159 2001/09/27 17:49:12 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.160 2001/09/30 03:49:18 frantzen Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -135,12 +135,12 @@ struct pf_port_list pf_tcp_ports; struct pf_port_list pf_udp_ports; /* Timeouts */ -int pftm_tcp_first_packet = 60; /* First TCP packet */ +int pftm_tcp_first_packet = 120; /* First TCP packet */ int pftm_tcp_opening = 30; /* No response yet */ int pftm_tcp_established = 24*60*60; /* established */ -int pftm_tcp_closing = 60 * 60; /* Half closed */ -int pftm_tcp_fin_wait = 2 * 60; /* Got both FINs */ -int pftm_tcp_closed = 1 * 60; /* Got a RST */ +int pftm_tcp_closing = 15 * 60; /* Half closed */ +int pftm_tcp_fin_wait = 45; /* Got both FINs */ +int pftm_tcp_closed = 90; /* Got a RST */ int pftm_udp_first_packet = 60; /* First UDP packet */ int pftm_udp_single = 30; /* Unidirectional */ |