]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Tighten accepted circwindow parameters
authorSebastian Hahn <sebastian@torproject.org>
Sat, 15 Jan 2011 18:39:27 +0000 (19:39 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 15 Jan 2011 18:42:17 +0000 (19:42 +0100)
Based on discussion in bug 2317, these values seem to be sane.

src/or/or.h

index acca61f7d316b20a9186bec71aeb6e4242c9dd37..22c8498b66d1195d1c5ad8e9f19ec6f0ca13cf29 100644 (file)
@@ -765,8 +765,8 @@ typedef enum {
 /** Initial value for both sides of a circuit transmission window when the
  * circuit is initialized.  Measured in cells. */
 #define CIRCWINDOW_START 1000
-#define CIRCWINDOW_START_MIN 1
-#define CIRCWINDOW_START_MAX 100000
+#define CIRCWINDOW_START_MIN 100
+#define CIRCWINDOW_START_MAX 1000
 /** Amount to increment a circuit window when we get a circuit SENDME. */
 #define CIRCWINDOW_INCREMENT 100
 /** Initial value on both sides of a stream transmission window when the