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
Remapped signals and added support for drl to reopen logfiles.
[distributedratelimiting.git]
/
drl
/
ratetypes.h
diff --git
a/drl/ratetypes.h
b/drl/ratetypes.h
index
319d071
..
5430c2d
100644
(file)
--- a/
drl/ratetypes.h
+++ b/
drl/ratetypes.h
@@
-36,12
+36,19
@@
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;
/** Pointer to the identity's parent in the HTB hierarchy. */
struct identity *parent;
/** The local rate limit. */
uint32_t locallimit;
/** Pointer to the identity's parent in the HTB hierarchy. */
struct identity *parent;
+ /** For sets, indicates the parent should be 0x10. Meaningless for machines. */
+ int independent;
+
/** Array of the leaves that are limited by this identity. Points into the
* leaves array for the identity's instance. */
struct leaf **leaves;
/** Array of the leaves that are limited by this identity. Points into the
* leaves array for the identity's instance. */
struct leaf **leaves;
@@
-185,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;
/**