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
minor build fix for zonekeeperless builds
[distributedratelimiting.git]
/
drl
/
ratetypes.h
diff --git
a/drl/ratetypes.h
b/drl/ratetypes.h
index
dc7f6c9
..
5430c2d
100644
(file)
--- a/
drl/ratetypes.h
+++ b/
drl/ratetypes.h
@@
-36,6
+36,10
@@
typedef struct identity {
/** The global rate limit. */
uint32_t limit;
/** The global rate limit. */
uint32_t limit;
+ /** The effective global rate limit. Can be lower than the nominal global
+ * rate limit due to the failure of one or more peers. */
+ uint32_t effective_limit;
+
/** The local rate limit. */
uint32_t locallimit;
/** The local rate limit. */
uint32_t locallimit;
@@
-188,6
+192,10
@@
typedef struct leaf {
/** GRD: The leaf's packet drop probability. */
double drop_prob;
/** GRD: The leaf's packet drop probability. */
double drop_prob;
+
+ /** Only used for experimentation. */
+ int delay;
+
} leaf_t;
/**
} leaf_t;
/**