#ifndef _UCW_TBF_H_
#define _UCW_TBF_H_
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define tbf_init ucw_tbf_init
+#define tbf_limit ucw_tbf_limit
+#endif
+
/** A data structure describing a single TBF. **/
struct token_bucket_filter {
double rate; // Number of tokens received per second
- uns burst; // Capacity of the bucket
+ uint burst; // Capacity of the bucket
timestamp_t last_hit; // Internal state...
double bucket;
- uns drop_count;
+ uint drop_count;
};
/** Initialize the bucket. **/