make number of throttle buckets configurable
This commit is contained in:
parent
cc4a4a430e
commit
2f1b71cd74
4 changed files with 38 additions and 54 deletions
2
tbf.h
2
tbf.h
|
|
@ -33,7 +33,7 @@ typedef struct {
|
|||
char packets[TBF_MAX_QUEUE][TBF_MAX_SIZE];
|
||||
} tbft;
|
||||
|
||||
void init_tbf(void);
|
||||
void init_tbf(int num_tbfs);
|
||||
int tbf_run_timer(void);
|
||||
int tbf_queue_packet(int tbf_id, char * data, int size);
|
||||
int new_tbf(int sid, int max_credit, int rate, void (*f)(sessionidt, u8 *, int));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue