Tweaked the timing of flow expiration back down.
[distributedratelimiting.git] / drl / raterouter.h
index 28c6c7f..789cd95 100644 (file)
@@ -42,6 +42,7 @@ enum accountings { ACT_STANDARD = 1, ACT_SAMPLEHOLD = 2, ACT_SIMPLE = 3 };
 
 /* global constants */
 #define IDENT_CLEAN_INTERVAL 5 /* in seconds */
+
 #define LIMITER_LISTEN_PORT 9001
 
 /**
@@ -56,7 +57,9 @@ enum accountings { ACT_STANDARD = 1, ACT_SAMPLEHOLD = 2, ACT_SIMPLE = 3 };
  *
  * This is used for FPS only.  See estimate.c
  */
-#define FLOW_START_THRESHOLD (4096)
+#define FLOW_START_THRESHOLD (6000)
+
+#define CLOSE_ENOUGH (0.99)
 
 /**
  * All fields come from the ip protocol header.