git://git.onelab.eu
/
distributedratelimiting.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots of changes. In no particular order:
[distributedratelimiting.git]
/
drl
/
samplehold.h
diff --git
a/drl/samplehold.h
b/drl/samplehold.h
index
5a554ef
..
f96fa26
100644
(file)
--- a/
drl/samplehold.h
+++ b/
drl/samplehold.h
@@
-28,7
+28,10
@@
#define FLOW_DELETED 1
#define FLOW_USED 2
#define FLOW_DELETED 1
#define FLOW_USED 2
-#define RANDOM_GRANULARITY 1000
+#define RANDOM_GRANULARITY (1000)
+
+#define SAMPLEHOLD_PERCENTAGE (5)
+#define SAMPLEHOLD_OVERFACTOR (10)
/** In-table representation of a flow that has been sampled. */
typedef struct sampled_flow {
/** In-table representation of a flow that has been sampled. */
typedef struct sampled_flow {