diff options
| author | 刘文坛 <[email protected]> | 2023-07-28 12:32:25 +0000 |
|---|---|---|
| committer | 刘文坛 <[email protected]> | 2023-07-28 12:32:25 +0000 |
| commit | bcbb796a7d26ca42e7b72c86581ba04e2e0abc57 (patch) | |
| tree | 2402a1c8c7a6add6c6f88bd241dd06032f515cf1 /include | |
| parent | c1d413e992c1224afad331c645ea0df305a6ed0f (diff) | |
[FEATURE]expr_matcher support dual engine(hyperscan & rulescan)
Diffstat (limited to 'include')
| -rw-r--r-- | include/maat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/maat.h b/include/maat.h index 0f34573..472f970 100644 --- a/include/maat.h +++ b/include/maat.h @@ -60,6 +60,11 @@ enum maat_list_type { MAAT_LIST_TYPE_INC }; +enum maat_expr_engine { + MAAT_EXPR_ENGINE_HS = 0, //default engine(hyperscan) + MAAT_EXPR_ENGINE_RS //rulescan +}; + struct ip_addr { int ip_type; //4: IPv4, 6: IPv6 union { @@ -145,6 +150,8 @@ int maat_options_set_redis(struct maat_options *opts, const char *redis_ip, int maat_options_set_stat_file(struct maat_options *opts, const char *stat_filename); +int maat_options_set_expr_engine(struct maat_options *opts, enum maat_expr_engine engine); + /* maat_instance API */ struct maat *maat_new(struct maat_options *opts, const char *table_info_path); void maat_free(struct maat *instance); |
