修正tun处理线程在数据包处理线程外发包过程中,线程号填写错误导致Data-race的问题。
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
|
||||
#include "kni_intercept.h"
|
||||
#include "kni_entry.h"
|
||||
|
||||
|
||||
#include "kni_utils.h"
|
||||
|
||||
|
||||
extern "C" int sendpacket_do_checksum(unsigned char* buf,int protocol,int len);
|
||||
@@ -807,7 +806,7 @@ int kni_process_readdata(int thread_seq,int sendpkt_threadid,int buflen,char* bu
|
||||
}
|
||||
else
|
||||
{
|
||||
MESA_sendpacket_iplayer_options(thread_seq,buf,buflen,args.routdir,NULL,0);
|
||||
MESA_sendpacket_iplayer_options(sendpkt_threadid,buf,buflen,args.routdir,NULL,0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user