diff options
| author | liuchang <[email protected]> | 2023-07-03 08:43:49 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-07-03 08:43:49 +0000 |
| commit | 96c628d2cda78c5952963d764b3f821951ff862c (patch) | |
| tree | 7ec928221fc9dce93626d071b83ba4392555b3d4 /shaping/include/shaper_maat.h | |
| parent | 301613cec7f20aa45f4f56c958a38458a7f8f545 (diff) | |
check if the rule is enabled before get token, check interval default 120s
Diffstat (limited to 'shaping/include/shaper_maat.h')
| -rw-r--r-- | shaping/include/shaper_maat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shaping/include/shaper_maat.h b/shaping/include/shaper_maat.h index df3558f..51db653 100644 --- a/shaping/include/shaper_maat.h +++ b/shaping/include/shaper_maat.h @@ -32,6 +32,7 @@ void shaper_profile_ex_new(const char *table_name, int table_id, const char *key void shaper_profile_ex_dup(int table_id, void **to, void **from, long argl, void *argp); void shaper_profile_ex_free(int table_id, void **ad, long argl, void *argp); +int shaper_rule_is_enabled(struct shaping_thread_ctx *ctx, long long rule_id); void shaper_rules_update(struct shaping_thread_ctx *ctx, struct shaping_flow *sf, long long *rule_compile_ids, int rule_num); struct shaping_maat_info* shaper_maat_init(const char *instance_name); |
