summaryrefslogtreecommitdiff
path: root/shaping/test/stub.h
diff options
context:
space:
mode:
authorroot <[email protected]>2023-12-06 08:36:47 +0000
committerroot <[email protected]>2023-12-06 08:36:47 +0000
commit29cd6942c133fad7c38a75e22e1cadea726ec89f (patch)
tree6ef77e9a4b8c54a515928bc7f5c19fd5527e775f /shaping/test/stub.h
parenta5923348e98e0a312826d12c92beef20f702a0ca (diff)
1.fix bug fairness profile can't limit rate
2.add corresponding test case
Diffstat (limited to 'shaping/test/stub.h')
-rw-r--r--shaping/test/stub.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shaping/test/stub.h b/shaping/test/stub.h
index 48b9b0b..f7119d2 100644
--- a/shaping/test/stub.h
+++ b/shaping/test/stub.h
@@ -31,6 +31,7 @@ TAILQ_HEAD(stub_pkt_queue, stub_packet_node);
void stub_set_token_bucket_avl_per_sec(int profile_id, unsigned int tokens, unsigned char direction);
void stub_refresh_token_bucket(int profile_id);
+void stub_set_profile_type(int profile_id, enum shaping_profile_type type);
void stub_set_async_token_get_times(int profile_id, int times);
void stub_set_matched_shaping_rules(int rule_num, long long *rule_id, const int *priority, const int *profile_num, int profile_id[][MAX_REF_PROFILE]);