1.rename rule_state to rule_compile_state

2.recover regex_expr.json to make expr_matcher_gtest pass
This commit is contained in:
root
2024-08-30 08:28:58 +00:00
parent 54a70f19d9
commit 537c75887d
28 changed files with 433 additions and 340 deletions

View File

@@ -0,0 +1,201 @@
[
{
"table_id":0,
"table_name": "NTC_RULE",
"table_type":"rule",
"valid_column":8,
"custom": {
"rule_id":1,
"tags":6,
"condition_num":9
}
},
{
"table_id":1,
"table_name": "WHITE_LIST_RULE",
"table_type":"rule",
"valid_column":8,
"custom": {
"rule_id":1,
"tags":6,
"condition_num":9
}
},
{
"table_id":2,
"table_name": "FILE_RULE",
"db_tables": ["NTC_RULE", "WHITE_LIST_RULE"],
"default_rule_table":2,
"table_type":"rule",
"valid_column":8,
"custom": {
"rule_id":1,
"tags":6,
"condition_num":9
}
},
{
"table_id":3,
"table_name":"NTC_OBJECT2OBJECT",
"table_type":"object2object",
"valid_column":4,
"custom": {
"object_id":1,
"included_sub_object_ids":2,
"excluded_sub_object_ids":3
}
},
{
"table_id":4,
"table_name":"NTC_OBJECT2RULE",
"table_type":"object2rule",
"associated_rule_table_id":2,
"valid_column":3,
"custom": {
"object_id":1,
"rule_id":2,
"negate_option":4,
"attribute_name":5,
"condition_index":6
}
},
{
"table_id":5,
"table_name":"NTC_UNIVERSAL_IP",
"table_type":"ip",
"valid_column":5,
"custom": {
"item_id":1,
"object_id":2,
"ip":3,
"port":4
}
},
{
"table_id":6,
"table_name":"NTC_UNIVERSAL_PROTO_TYPE",
"table_type":"interval",
"valid_column":4,
"custom": {
"item_id":1,
"object_id":2,
"interval":3
}
},
{
"table_id":7,
"table_name":"WHITE_LIST_IP",
"table_type":"ip",
"valid_column":5,
"custom": {
"item_id":1,
"object_id":2,
"ip":3,
"port":4
}
},
{
"table_id":8,
"table_name":"FILE_HTTP_URL",
"db_tables": ["NTC_HTTP_URL", "WHITE_LIST_DOMAIN"],
"table_type":"expr",
"valid_column":7,
"custom": {
"item_id":1,
"object_id":2,
"keywords":3,
"expr_type":4,
"match_method":5,
"is_hexbin":6
}
},
{
"table_id":9,
"table_name":"FILE_HTTP_HDR_REGION",
"db_tables":["NTC_HTTP_REQ_HDR", "NTC_HTTP_RES_HDR"],
"table_type":"expr_plus",
"valid_column":8,
"custom": {
"item_id":1,
"object_id":2,
"district":3,
"keywords":4,
"expr_type":5,
"match_method":6,
"is_hexbin":7
}
},
{
"table_id":10,
"table_name":"FILE_HTTP_BODY_REGION",
"db_tables":["NTC_HTTP_REQ_BODY", "NTC_HTTP_RES_BODY"],
"table_type":"expr",
"valid_column":7,
"custom": {
"item_id":1,
"object_id":2,
"keywords":3,
"expr_type":4,
"match_method":5,
"is_hexbin":6
}
},
{
"table_id":11,
"table_name":"NTC_MAIL_HDR",
"table_type":"expr_plus",
"valid_column":8,
"custom": {
"item_id":1,
"object_id":2,
"district":3,
"keywords":4,
"expr_type":5,
"match_method":6,
"is_hexbin":7
}
},
{
"table_id":12,
"table_name":"NTC_MAIL_BODY",
"table_type":"expr_plus",
"valid_column":8,
"custom": {
"item_id":1,
"object_id":2,
"district":3,
"keywords":4,
"expr_type":5,
"match_method":6,
"is_hexbin":7
}
},
{
"table_id":13,
"table_name":"NTC_FTP_URL",
"table_type":"expr",
"valid_column":7,
"custom": {
"item_id":1,
"object_id":2,
"keywords":3,
"expr_type":4,
"match_method":5,
"is_hexbin":6
}
},
{
"table_id":14,
"table_name":"NTC_FTP_CONTENT",
"table_type":"expr",
"valid_column":7,
"custom": {
"item_id":1,
"object_id":2,
"keywords":3,
"expr_type":4,
"match_method":5,
"is_hexbin":6
}
}
]