summaryrefslogtreecommitdiff
path: root/shaping/test/stub.h
diff options
context:
space:
mode:
authorroot <[email protected]>2024-07-31 09:29:47 +0000
committerroot <[email protected]>2024-07-31 09:29:47 +0000
commit4030c6fb6887356e38b20cb3d74358463dd29e37 (patch)
tree1faf56cf86595d081341f734326ad5256283591b /shaping/test/stub.h
parent9f31dd1065332f36382383564abe2734beba6ce8 (diff)
add fair-share profile test case
Diffstat (limited to 'shaping/test/stub.h')
-rw-r--r--shaping/test/stub.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/shaping/test/stub.h b/shaping/test/stub.h
index 4589be1..7581a98 100644
--- a/shaping/test/stub.h
+++ b/shaping/test/stub.h
@@ -18,9 +18,7 @@ struct stub_packet {
unsigned char direction;
unsigned char pure_control;
unsigned int length;
- unsigned int sequence;
- unsigned long long income_time;
- unsigned char detained_flag;
+ struct shaping_flow *flow;
};
struct stub_packet_node {
@@ -38,6 +36,7 @@ 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]);
void stub_set_shaping_rule_dscp_value(int rule_id, int dscp_value);
+void stub_set_shaping_rule_fair_factor(int rule_id, int fair_factor);
void stub_clear_matched_shaping_rules();
void stub_send_packet(struct stub_packet *packet);