X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fsamplehold.h;h=f96fa26a85f546b02fd30a0d179f088895d73dd6;hp=5a554ef99fbacf464f6dae407d55ce56d75f1f8c;hb=f83340496f632165030cc92cd98408a87082f6b1;hpb=74f52acf84cbf11faab8aa53e069464063ce11b9 diff --git a/drl/samplehold.h b/drl/samplehold.h index 5a554ef..f96fa26 100644 --- a/drl/samplehold.h +++ b/drl/samplehold.h @@ -28,7 +28,10 @@ #define FLOW_DELETED 1 #define FLOW_USED 2 -#define RANDOM_GRANULARITY 1000 +#define RANDOM_GRANULARITY (1000) + +#define SAMPLEHOLD_PERCENTAGE (5) +#define SAMPLEHOLD_OVERFACTOR (10) /** In-table representation of a flow that has been sampled. */ typedef struct sampled_flow {