TSG-22316 Manipulation支持Device相关策略的扫描与日志发送, TSG-22051 Manipulation日志发送Library相关字段, TSG-22256 Manipulation日志发送Incoming Link ID和Outgoing Link ID等字段
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
enum category_type
|
||||
{
|
||||
CATEGORY_TYPE_UNKNOWN = 0,
|
||||
CATEGORY_TYPE_GEOIP,
|
||||
CATEGORY_TYPE_CONTRY_CODE,
|
||||
CATEGORY_TYPE_ASN,
|
||||
CATEGORY_TYPE_WEBSITE_CATEGORY,
|
||||
CATEGORY_TYPE_INTERNET_SERVICE,
|
||||
CATEGORY_TYPE_SECURITY_THREAT,
|
||||
CATEGORY_TYPE_RISK,
|
||||
CATEGORY_TYPE_MAX
|
||||
};
|
||||
|
||||
struct app_id_dict
|
||||
{
|
||||
int ref_cnt;
|
||||
@@ -9,7 +22,19 @@ struct app_id_dict
|
||||
pthread_mutex_t lock;
|
||||
};
|
||||
|
||||
struct library_tag_ctx
|
||||
{
|
||||
int ref_cnt;
|
||||
int tag_id;
|
||||
char *tag_key;
|
||||
char *tag_value;
|
||||
enum category_type category;
|
||||
|
||||
pthread_mutex_t lock;
|
||||
};
|
||||
|
||||
void app_id_dict_free(struct app_id_dict *app_dict);
|
||||
void library_tag_free(struct library_tag_ctx *library_tags);
|
||||
|
||||
enum scan_common_table
|
||||
{
|
||||
@@ -24,6 +49,11 @@ enum scan_common_table
|
||||
PXY_CTRL_IP_PROTOCOL,
|
||||
PXY_CTRL_SUBSCRIBER_ID,
|
||||
PXY_CTRL_APP_ID_DICT,
|
||||
PXY_CTRL_LIBRARY_TAG,
|
||||
PXY_CTRL_IMSI,
|
||||
PXY_CTRL_APN,
|
||||
PXY_CTRL_PHONE_NUMBER,
|
||||
PXY_CTRL_GTP_IMEI,
|
||||
__SCAN_COMMON_TABLE_MAX
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <cjson/cJSON.h>
|
||||
#include <tfe_stream.h>
|
||||
#define MAX_SCAN_RESULT 16
|
||||
|
||||
@@ -9,4 +10,7 @@ int tfe_scan_fqdn_tags(const struct tfe_stream *stream, long long *result, struc
|
||||
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);
|
||||
int tfe_scan_port(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, uint16_t source, uint16_t dest);
|
||||
int tfe_scan_port(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, uint16_t source, uint16_t dest);
|
||||
int tfe_scan_device(const struct tfe_stream *stream, long long *result, struct maat_state *scan_mid, int hit_cnt, void *logger);
|
||||
|
||||
int tfe_get_library_tags(const struct tfe_stream *stream, cJSON *common_obj, tfe_cmsg_tlv_type tlv_type, const char *tag_key);
|
||||
|
||||
Reference in New Issue
Block a user