X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fratetypes.h;h=c4f6b90015ce0cc365feb8ebcba6fe8e6d908624;hp=319d0714cfd0880ea98a135e41beaaa46c7dff0e;hb=17fba5cc2628df108d09ab4abbbd4b4a7437e7eb;hpb=f83340496f632165030cc92cd98408a87082f6b1 diff --git a/drl/ratetypes.h b/drl/ratetypes.h index 319d071..c4f6b90 100644 --- a/drl/ratetypes.h +++ b/drl/ratetypes.h @@ -42,6 +42,9 @@ typedef struct identity { /** 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 +188,10 @@ typedef struct leaf { /** GRD: The leaf's packet drop probability. */ double drop_prob; + + /** Only used for experimentation. */ + int delay; + } leaf_t; /**