TSG-2611: 修改重复流量多次进行tcp option 扫描问题
This commit is contained in:
@@ -138,6 +138,7 @@ struct pme_info{
|
|||||||
int is_dynamic_bypass;
|
int is_dynamic_bypass;
|
||||||
//for proxy tcp option
|
//for proxy tcp option
|
||||||
struct proxy_tcp_option pxy_tcp_option;
|
struct proxy_tcp_option pxy_tcp_option;
|
||||||
|
int pxy_tcp_option_is_scan;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wrapped_packet{
|
struct wrapped_packet{
|
||||||
|
|||||||
@@ -1373,7 +1373,14 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str
|
|||||||
//only action = intercept, need sendlog
|
//only action = intercept, need sendlog
|
||||||
pmeinfo->tld_handle = TLD_create(-1);
|
pmeinfo->tld_handle = TLD_create(-1);
|
||||||
if(g_kni_handle->pxy_tcp_option_enable == 1)
|
if(g_kni_handle->pxy_tcp_option_enable == 1)
|
||||||
pxy_tcp_option_get_param(g_tsg_maat_feather,(const struct streaminfo *)stream,pmeinfo,logger);
|
{
|
||||||
|
KNI_LOG_DEBUG(logger, "Proxy-tcp-option: before scan status:%d ( 1 is has been scanned, other value not scan),stream traceid = %s", pmeinfo->pxy_tcp_option_is_scan,pmeinfo->stream_traceid);
|
||||||
|
if(pmeinfo->pxy_tcp_option_is_scan != 1)
|
||||||
|
{
|
||||||
|
pxy_tcp_option_get_param(g_tsg_maat_feather,(const struct streaminfo *)stream,pmeinfo,logger);
|
||||||
|
pmeinfo->pxy_tcp_option_is_scan = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
return first_data_intercept(stream, pmeinfo, pktinfo, thread_seq);
|
return first_data_intercept(stream, pmeinfo, pktinfo, thread_seq);
|
||||||
default:
|
default:
|
||||||
//action != intercept,bypass and dropme
|
//action != intercept,bypass and dropme
|
||||||
|
|||||||
Reference in New Issue
Block a user