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
Fixes & tweaks for sample and hold accounting.
[distributedratelimiting.git]
/
drl
/
drl_state.h
diff --git
a/drl/drl_state.h
b/drl/drl_state.h
index
7715a36
..
950ea7e
100644
(file)
--- a/
drl/drl_state.h
+++ b/
drl/drl_state.h
@@
-31,7
+31,10
@@
#define MAX_IDENTS (1024)
#define MAX_LIMITERS (128)
#define MAX_IDENTS (1024)
#define MAX_LIMITERS (128)
-#define REMOTE_AWOL_THRESHOLD (5)
+#define MESH_REMOTE_AWOL_THRESHOLD (5)
+
+//FIXME: Make this more scientific?
+#define GOSSIP_REMOTE_AWOL_THRESHOLD (10 * comm->remote_node_count / comm->gossip.gossip_branch)
enum transports { UDP, TCP };
enum transports { UDP, TCP };