summaryrefslogtreecommitdiff
path: root/src/maat_expr.c
diff options
context:
space:
mode:
author刘文坛 <[email protected]>2023-10-24 08:21:41 +0000
committer刘文坛 <[email protected]>2023-10-24 08:21:41 +0000
commitd24d6c1a5f7bced09b5c69f7f8210f5c396336b9 (patch)
tree19ca1e71a7b144227f7fb9f05a43eba48889bed8 /src/maat_expr.c
parentbf05309f2a1e5f55f7385f5212aa65252b1acbee (diff)
[FEATURE]support physical NOT clause => TSG-17286
Diffstat (limited to 'src/maat_expr.c')
-rw-r--r--src/maat_expr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/maat_expr.c b/src/maat_expr.c
index 8663631..b17df06 100644
--- a/src/maat_expr.c
+++ b/src/maat_expr.c
@@ -955,8 +955,8 @@ long long expr_runtime_get_version(void *expr_runtime)
}
int expr_runtime_scan(struct expr_runtime *expr_rt, int thread_id,
- const char *data, size_t data_len, int vtable_id,
- struct maat_state *state)
+ const char *data, size_t data_len, int phy_table_id,
+ int vtable_id, struct maat_state *state)
{
if (0 == expr_rt->rule_num) {
//empty expr table
@@ -1002,7 +1002,7 @@ int expr_runtime_scan(struct expr_runtime *expr_rt, int thread_id,
}
next:
- return maat_compile_state_update(vtable_id, hit_maat_items, real_hit_item_cnt, state);
+ return maat_compile_state_update(phy_table_id, vtable_id, hit_maat_items, real_hit_item_cnt, state);
}
struct expr_matcher_stream *
@@ -1024,7 +1024,8 @@ expr_runtime_stream_open(struct expr_runtime *expr_rt, int thread_id)
int expr_runtime_stream_scan(struct expr_runtime *expr_rt,
struct expr_matcher_stream *s_handle,
const char *data, size_t data_len,
- int vtable_id, struct maat_state *state)
+ int phy_table_id, int vtable_id,
+ struct maat_state *state)
{
if (0 == expr_rt->rule_num) {
//empty expr table
@@ -1064,7 +1065,7 @@ int expr_runtime_stream_scan(struct expr_runtime *expr_rt,
}
next:
- return maat_compile_state_update(vtable_id, hit_maat_items, real_hit_item_cnt, state);
+ return maat_compile_state_update(phy_table_id, vtable_id, hit_maat_items, real_hit_item_cnt, state);
}
void expr_runtime_stream_close(struct expr_runtime *expr_rt, int thread_id,