Added an 'independent' option for set identites that will put them under the
[distributedratelimiting.git] / drl / config.h
index e1a436f..0b202c7 100644 (file)
@@ -75,9 +75,12 @@ typedef struct ident_config {
     /** The fixed (1-second) ewma weight value for this identity. */
     double fixed_ewma_weight;
 
-    /** The number of estimate intervals to wait between calls to estimate,
+    /** The number of limiter intervals to wait between calls to estimate,
      * allocate and enforce. */
-    int intervals;
+    int mainloop_intervals;
+
+    /** The number of limiter intervals to wait between communication. */
+    int communication_intervals;
 
     /** The type of this identity. */
     enum ident_types type;
@@ -88,6 +91,9 @@ typedef struct ident_config {
     /** The number of peers. */
     int peer_count;
 
+    /** If this is set, the node goes under the root rather than machine nodes. */
+    int independent;
+
     /** List of the identity's members (type IDENT_SET only). */
     ident_member *members;