TSG-22093 Manipulation支持Library Tag相关策略的扫描与日志发送

This commit is contained in:
fengweihao
2024-08-16 11:57:20 +08:00
parent 88e6b0ae9b
commit c2c20d3310
9 changed files with 585 additions and 714 deletions

View File

@@ -22,16 +22,6 @@ enum scan_common_table
PXY_CTRL_INTERNAL_PORT,
PXY_CTRL_EXTERNAL_PORT,
PXY_CTRL_IP_PROTOCOL,
PXY_CTRL_SOURCE_ASN,
PXY_CTRL_DESTINATION_ASN,
PXY_CTRL_SOURCE_GEO_COUNTRY,
PXY_CTRL_SOURCE_GEO_SUPER_ADMINISTRATIVE_AREA,
PXY_CTRL_SOURCE_GEO_ADMINISTRATIVE_AREA,
PXY_CTRL_SOURCE_GEO_SUB_ADMINISTRATIVE_AREA,
PXY_CTRL_DESTINATION_GEO_COUNTRY,
PXY_CTRL_DESTINATION_GEO_SUPER_ADMINISTRATIVE_AREA,
PXY_CTRL_DESTINATION_GEO_ADMINISTRATIVE_AREA,
PXY_CTRL_DESTINATION_GEO_SUB_ADMINISTRATIVE_AREA,
PXY_CTRL_SUBSCRIBER_ID,
PXY_CTRL_APP_ID_DICT,
__SCAN_COMMON_TABLE_MAX

View File

@@ -3,10 +3,9 @@
#include <tfe_stream.h>
#define MAX_SCAN_RESULT 16
int tfe_scan_subscribe_id(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid,
int hit_cnt, void *logger);
int tfe_scan_ip_asn(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, void *logger);
int tfe_scan_ip_location(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, void *logger);
int tfe_scan_subscribe_id(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, void *logger);
int tfe_scan_ip_tags(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, void *logger);
int tfe_scan_fqdn_tags(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, int table_id, void *logger);
int tfe_scan_app_id(long long *result, struct maat_state *scan_mid, int hit_cnt, long long app_id, int table_id);
int tfe_scan_ipv4_addr(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, struct ipaddr sapp_addr);
int tfe_scan_ipv6_addr(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, struct ipaddr sapp_addr);