TSG-18177 Proxy删除关于FQDN Category的配置加载和扫描, Proxy适配maat_scan_group函数变更
This commit is contained in:
@@ -109,7 +109,6 @@ size_t file_bucket_upload_once(struct proxy_logger* handle, char *uuid, struct e
|
||||
|
||||
struct proxy_logger* proxy_log_handle_create(const char* profile, const char* section, void* local_logger)
|
||||
{
|
||||
struct tango_cache_parameter *log_file_upload_para=NULL;
|
||||
struct proxy_logger* instance=ALLOC(struct proxy_logger,1);
|
||||
instance->local_logger=local_logger;
|
||||
|
||||
@@ -138,26 +137,6 @@ error_out:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static unsigned int proxy_log_get_fqdn_cat(struct tfe_cmsg *cmsg, unsigned int *category_id_val, size_t sz_out_value_buf)
|
||||
{
|
||||
int ret=0;
|
||||
unsigned category_id_num=0;
|
||||
uint16_t opt_out_size;
|
||||
|
||||
ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_FQDN_CAT_ID_NUM, (unsigned char *)&category_id_num, sizeof(category_id_num), &opt_out_size);
|
||||
if (ret != 0 || category_id_num == 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_FQDN_CAT_ID_VAL, (unsigned char *)category_id_val, sz_out_value_buf, &opt_out_size);
|
||||
if (ret != 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
return category_id_num > 8 ? 8 : category_id_num;
|
||||
}
|
||||
|
||||
int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg)
|
||||
{
|
||||
const struct tfe_http_session* http=log_msg->http;
|
||||
@@ -200,7 +179,6 @@ int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg)
|
||||
cJSON_AddNumberToObject(common_obj, "start_timestamp_ms", get_time_ms(http->start_time));
|
||||
cJSON_AddNumberToObject(common_obj, "end_timestamp_ms", get_time_ms(cur_time));
|
||||
|
||||
unsigned int category_id_val[64]={0};
|
||||
char source_subscribe_id[64]={0};
|
||||
char opt_val[24]={0}; uint16_t opt_out_size;
|
||||
struct tfe_cmsg * cmsg = tfe_stream_get0_cmsg(log_msg->stream);
|
||||
@@ -216,11 +194,6 @@ int proxy_send_log(struct proxy_logger* handle, const struct proxy_log* log_msg)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "subscriber_id", source_subscribe_id);
|
||||
}
|
||||
ret = proxy_log_get_fqdn_cat(cmsg, category_id_val, sizeof(category_id_val));
|
||||
if (ret>0)
|
||||
{
|
||||
cJSON_AddItemToObject(common_obj, "fqdn_category_list", cJSON_CreateIntArray((const int*)category_id_val, ret));
|
||||
}
|
||||
}
|
||||
|
||||
if (http->req)
|
||||
|
||||
Reference in New Issue
Block a user