修改结构体_identify_info变为identify_info
This commit is contained in:
@@ -1454,8 +1454,8 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str
|
|||||||
void *logger = g_kni_handle->local_logger;
|
void *logger = g_kni_handle->local_logger;
|
||||||
int maat_hit = 0;
|
int maat_hit = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct _identify_info identify_info;
|
struct identify_info _identify_info;
|
||||||
ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &identify_info);
|
ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &_identify_info);
|
||||||
//ret == 0, bypass and dropme
|
//ret == 0, bypass and dropme
|
||||||
if(ret == 0){
|
if(ret == 0){
|
||||||
pmeinfo->action = KNI_ACTION_NONE;
|
pmeinfo->action = KNI_ACTION_NONE;
|
||||||
@@ -1465,9 +1465,9 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
pmeinfo->maat_result_num = 1;
|
pmeinfo->maat_result_num = 1;
|
||||||
pmeinfo->protocol = identify_info.proto;
|
pmeinfo->protocol = _identify_info.proto;
|
||||||
pmeinfo->domain_len = MIN(identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1);
|
pmeinfo->domain_len = MIN(_identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1);
|
||||||
strncpy(pmeinfo->domain.sni, identify_info.domain, pmeinfo->domain_len);
|
strncpy(pmeinfo->domain.sni, _identify_info.domain, pmeinfo->domain_len);
|
||||||
pmeinfo->action = (enum kni_action)(pmeinfo->maat_result.action);
|
pmeinfo->action = (enum kni_action)(pmeinfo->maat_result.action);
|
||||||
pmeinfo->policy_id = pmeinfo->maat_result.config_id;
|
pmeinfo->policy_id = pmeinfo->maat_result.config_id;
|
||||||
pmeinfo->do_log = pmeinfo->maat_result.do_log;
|
pmeinfo->do_log = pmeinfo->maat_result.do_log;
|
||||||
|
|||||||
Reference in New Issue
Block a user