summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2003-11-18 20:43:23 +0000
committerarchie <archie@FreeBSD.org>2003-11-18 20:43:23 +0000
commit7328a76791475109c0698dddee208434684a8909 (patch)
tree14e31fad59280ce522cc4db2c3a3f80eff9c91ed /sys/netgraph
parent89aeb7d1dffe850accd2b5aab6307acc5b86ee1b (diff)
downloadFreeBSD-src-7328a76791475109c0698dddee208434684a8909.zip
FreeBSD-src-7328a76791475109c0698dddee208434684a8909.tar.gz
Lower the maximum ACK timeout for GRE packets from 10 to 1 second.
In practice it seems that in situations of high packet loss the ACK timeout seems to hit this maximum (perhaps inappropriately, but the estimation algorithm is not perfect, so apparently it happens). In any case, 10 seconds is way too high a value so lower to 1 second. MFC after: 3 days
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_pptpgre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pptpgre.c b/sys/netgraph/ng_pptpgre.c
index 6966919..0542bb8 100644
--- a/sys/netgraph/ng_pptpgre.c
+++ b/sys/netgraph/ng_pptpgre.c
@@ -119,7 +119,7 @@ typedef u_int64_t pptptime_t;
#define PPTP_XMIT_WIN 16 /* max xmit window */
#define PPTP_MIN_RTT (PPTP_TIME_SCALE / 10) /* 100 milliseconds */
#define PPTP_MIN_TIMEOUT (PPTP_TIME_SCALE / 83) /* 12 milliseconds */
-#define PPTP_MAX_TIMEOUT (10 * PPTP_TIME_SCALE) /* 10 seconds */
+#define PPTP_MAX_TIMEOUT (1 * PPTP_TIME_SCALE) /* 1 second */
/* When we recieve a packet, we wait to see if there's an outgoing packet
we can piggy-back the ACK off of. These parameters determine the mimimum
OpenPOWER on IntegriCloud