TSG Master 共享部分扫描结果给 TFE
* TSG-2847 - TFE 新增 cmsg 共享 TSG Master 的扫描结果 * TSG-2851 - Pangu 从 cmsg 获取 TSG Master 的扫描结果 * TSG-2852 - DOH 从 cmsg 获取 TSG Master 的扫描结果 * TSG-2849 - TFE DOH 功能支持 SUBID * 合并 pangu/doh 的 maat scan 的代码为 tfe_scan
This commit is contained in:
@@ -3,40 +3,20 @@
|
||||
enum RESOURCE_TYPE
|
||||
{
|
||||
STATIC_MAAT,
|
||||
DYNAMINC_MAAT,
|
||||
KAFKA_LOGGER,
|
||||
DEVICE_ID,
|
||||
};
|
||||
|
||||
enum TABLE_TYPE
|
||||
{
|
||||
TABLE_IP_ASN_USER_DEFINED,
|
||||
TABLE_IP_ASN_BUILT_IN,
|
||||
TABLE_IP_LOCATION_USER_DEFINED,
|
||||
TABLE_IP_LOCATION_BUILT_IN,
|
||||
TABLE_SECURITY_SOURCE_ASN,
|
||||
TABLE_SECURITY_DESTINATION_ASN,
|
||||
TABLE_SECURITY_SOURCE_LOCATION,
|
||||
TABLE_SECURITY_DESTINATION_LOCATION,
|
||||
TABLE_OBJ_SUBSCRIBER_ID,
|
||||
TABLE_TYPE_MAX
|
||||
};
|
||||
|
||||
struct ip_data_table
|
||||
{
|
||||
int profile_id;
|
||||
int ref_cnt;
|
||||
|
||||
char *asn;
|
||||
char *organization;
|
||||
|
||||
char *country_full;
|
||||
char *province_full;
|
||||
char *city_full;
|
||||
|
||||
pthread_mutex_t lock;
|
||||
};
|
||||
|
||||
int tfe_bussiness_resouce_init();
|
||||
void *tfe_bussiness_resouce_get(enum RESOURCE_TYPE type);
|
||||
int tfe_bussiness_tableid_get(enum TABLE_TYPE type);
|
||||
void ip_table_free(struct ip_data_table *ip_asn);
|
||||
int tfe_bussiness_tableid_get(enum TABLE_TYPE type);
|
||||
Reference in New Issue
Block a user