X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fratetypes.h;h=5430c2ded02ff9b04b7c03f32b74f018176a5fb1;hp=dc7f6c938e250bf8072a1a18788ce70f35f00fe4;hb=c9d6255f0c06ee41eb2c06a5f74a957ec7be3223;hpb=d12ab8f1cd4ff135d692f7841360af70f0beb57b diff --git a/drl/ratetypes.h b/drl/ratetypes.h index dc7f6c9..5430c2d 100644 --- a/drl/ratetypes.h +++ b/drl/ratetypes.h @@ -36,6 +36,10 @@ 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; @@ -188,6 +192,10 @@ typedef struct leaf { /** GRD: The leaf's packet drop probability. */ double drop_prob; + + /** Only used for experimentation. */ + int delay; + } leaf_t; /**