bugfix:修改使用PRINTADDR导致kni coredump问题

This commit is contained in:
fumingwei
2021-07-23 18:19:19 +08:00
parent 8cff5b288a
commit 7431a6837f
2 changed files with 38 additions and 38 deletions

View File

@@ -18,9 +18,6 @@
#define TSG_DIAGNOSE_POLICY_CNT 32
#ifndef PRINTADDR
#define PRINTADDR(stream_info, log_level) ((log_level)<RLOG_LV_FATAL ? printaddr(&(stream_info->addr), stream_info->threadnum) : "")
#endif
enum intercept_error{
INTERCEPT_ERROR_ASYM_ROUTING = -1,
@@ -100,6 +97,7 @@ struct proxy_tcp_option{
struct pme_info{
addr_type_t addr_type;
char stream_addr[KNI_ADDR_MAX];
int do_log;
int policy_id;
tsg_protocol_t protocol;