summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2018-12-07 11:24:22 +0600
committerluqiuwen <[email protected]>2018-12-07 11:24:22 +0600
commitae8e7d4cd63d28126380c1cdeb22ea5005af15fb (patch)
tree96d6a2ebd3f9727fd1a2a376c01d956ba100d456
parent58999736c83bc53aaf8ca23d40c97d2418b4e5bb (diff)
修正tun处理线程在数据包处理线程外发包过程中,线程号填写错误导致Data-race的问题。
-rw-r--r--kni_intercept.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kni_intercept.c b/kni_intercept.c
index 3105e8a..05769cb 100644
--- a/kni_intercept.c
+++ b/kni_intercept.c
@@ -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