summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppd/pptp/pptp.h
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2011-10-15 03:24:11 +0000
committeryasuoka <yasuoka@openbsd.org>2011-10-15 03:24:11 +0000
commite405d423d1799d75a821e76c725badd34bf824ac (patch)
tree2ba44f99bdce4a04f2cf5f15c42a9af172004259 /usr.sbin/npppd/pptp/pptp.h
parentDelete unused field s_first in 'struct pppoe_session' that is assigned (diff)
downloadwireguard-openbsd-e405d423d1799d75a821e76c725badd34bf824ac.tar.xz
wireguard-openbsd-e405d423d1799d75a821e76c725badd34bf824ac.zip
Added "provision for rewound PPP frames" that allows receiving
reorder packets to pass to the upper layer without reorder. It will improve performance (throughput or loss rate) for PPTP or L2TP(/IPesc) on networks that latency is unstable such as mobile network. As our test environment (bandwidth: 6Mbps, latency: 50ms for 97% of traffic and 52ms for rest of traffic), throughput has changed from 0.76MB to 2.17MB on file upload by PPTP connected Windows Vista ftp.exe. Developed by UMEZAWA Takeshi at IIJ. ok jmatthew@ tested jmatthew@ and myself.
Diffstat (limited to 'usr.sbin/npppd/pptp/pptp.h')
-rw-r--r--usr.sbin/npppd/pptp/pptp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/npppd/pptp/pptp.h b/usr.sbin/npppd/pptp/pptp.h
index db704aa0f79..bbefc5af350 100644
--- a/usr.sbin/npppd/pptp/pptp.h
+++ b/usr.sbin/npppd/pptp/pptp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pptp.h,v 1.5 2011/01/20 23:12:33 jasper Exp $ */
+/* $OpenBSD: pptp.h,v 1.6 2011/10/15 03:24:11 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -180,11 +180,11 @@
#define PPTP_CALL_INITIAL_PPD 0
#endif
-/* PPTP_CALL_NMAX_INSEQ specifies N packets was backwarded,
- * when sequence# backwarded */
-#ifndef PPTP_CALL_NMAX_INSEQ
-#define PPTP_CALL_NMAX_INSEQ 64
-#endif
+/**
+ * PPTP_CALL_DELAY_LIMIT indicates how many sequence number can be rewinded
+ * by reordering.
+ */
+#define PPTP_CALL_DELAY_LIMIT 64
/* pptp call state machine */
#define PPTP_CALL_STATE_IDLE 0