Feature ratelimit
This commit is contained in:
10
src/tsg_leaky_bucket.h
Normal file
10
src/tsg_leaky_bucket.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef __TSG_LEAK_BUCKET_H__
|
||||
#define __TSG_LEAK_BUCKET_H__
|
||||
|
||||
struct leaky_bucket;
|
||||
|
||||
struct leaky_bucket *create_bucket(double rate, int bucket_size, int thread_seq);
|
||||
void destroy_bucket(struct leaky_bucket **bucket, int thread_seq);
|
||||
int is_permit_pass(int pkt_size, struct leaky_bucket * bucket, int thread_seq);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user