diff options
| author | liuwentan <[email protected]> | 2023-09-22 14:59:44 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-09-22 14:59:44 +0800 |
| commit | d55ca3595a8bdc9281a765a5b39b49135e7e415d (patch) | |
| tree | d4040ba3ee389dbd5312043257935d242e139c8a /include | |
| parent | 1e6c87c3d43cd7cb549bf021f0aef404a384add0 (diff) | |
[FEATURE]add hit_path&hit_group enable APIv4.0.42
Diffstat (limited to 'include')
| -rw-r--r-- | include/maat.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/include/maat.h b/include/maat.h index 5f08bfd..689af33 100644 --- a/include/maat.h +++ b/include/maat.h @@ -55,16 +55,16 @@ enum maat_update_type { MAAT_UPDATE_TYPE_INC }; -enum maat_list_type { - MAAT_LIST_TYPE_FULL = 1, - MAAT_LIST_TYPE_INC -}; - enum maat_expr_engine { MAAT_EXPR_ENGINE_HS = 0, //default engine(hyperscan) MAAT_EXPR_ENGINE_RS //rulescan }; +enum maat_list_type { + MAAT_LIST_TYPE_FULL = 1, + MAAT_LIST_TYPE_INC +}; + struct ip_addr { int ip_type; //4: IPv4, 6: IPv6 union { @@ -152,6 +152,10 @@ int maat_options_set_stat_file(struct maat_options *opts, const char *stat_filen int maat_options_set_expr_engine(struct maat_options *opts, enum maat_expr_engine engine); +int maat_options_set_hit_path_enabled(struct maat_options *opts); + +int maat_options_set_hit_group_enabled(struct maat_options *opts); + /* maat_instance API */ struct maat *maat_new(struct maat_options *opts, const char *table_info_path); void maat_free(struct maat *instance); @@ -290,18 +294,16 @@ int maat_state_get_hit_paths(struct maat_state *state, struct maat_hit_path *pat size_t maat_state_get_scan_count(struct maat_state *state); /** - * @brief get direct hit groups(full or incremental) + * @brief direct group means group corresponding to item * - * @param type: - * MAAT_LIST_TYPE_FULL => get all hit groups after maat_state_new - * MAAT_LIST_TYPE_INC => get hit groups for this scan * NOTE: hit groups may be duplicated */ int maat_state_get_direct_hit_groups(struct maat_state *state, enum maat_list_type type, - struct maat_hit_group *group_array, size_t array_size); + struct maat_hit_group *group_array, + size_t array_size); /** - * @brief get indirect hit groups + * @brief indirect group means superior group * * NOTE: hit groups may be duplicated */ |
