diff options
| author | fumingwei <[email protected]> | 2021-03-05 18:51:24 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2021-03-05 18:51:58 +0800 |
| commit | 916999fe4d74b86fcb46b7958a30f4ec56ee35ee (patch) | |
| tree | 4f8b2be593f7394411d2bf81c38ce16711cdfa38 | |
| parent | 13e663f7f944257d15e53bb49929b0ff399a781b (diff) | |
修改结构体_identify_info变为identify_infov21.03.01
| -rw-r--r-- | entry/src/kni_entry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index 7757357..7ebc8bf 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -1454,8 +1454,8 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str void *logger = g_kni_handle->local_logger; int maat_hit = 0; int ret = 0; - struct _identify_info identify_info; - ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &identify_info); + struct identify_info _identify_info; + ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &_identify_info); //ret == 0, bypass and dropme if(ret == 0){ pmeinfo->action = KNI_ACTION_NONE; @@ -1465,9 +1465,9 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str } else{ pmeinfo->maat_result_num = 1; - pmeinfo->protocol = identify_info.proto; - pmeinfo->domain_len = MIN(identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1); - strncpy(pmeinfo->domain.sni, identify_info.domain, pmeinfo->domain_len); + pmeinfo->protocol = _identify_info.proto; + pmeinfo->domain_len = MIN(_identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1); + strncpy(pmeinfo->domain.sni, _identify_info.domain, pmeinfo->domain_len); pmeinfo->action = (enum kni_action)(pmeinfo->maat_result.action); pmeinfo->policy_id = pmeinfo->maat_result.config_id; pmeinfo->do_log = pmeinfo->maat_result.do_log; |
