Updates to autotools for library detection
[distributedratelimiting.git] / drl / ratetypes.h
index 319d071..5430c2d 100644 (file)
@@ -36,12 +36,19 @@ typedef struct identity {
     /** 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;
 
+    /** 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;
@@ -185,6 +192,10 @@ typedef struct leaf {
 
     /** GRD: The leaf's packet drop probability. */
     double drop_prob;
+
+    /** Only used for experimentation. */
+    int delay;
+
 } leaf_t;
 
 /**