From ae670607b90e546a832e5c89c7f76c96a8b55cfd Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 25 Jan 2019 19:26:56 +0600 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=98=BB=E5=A1=9E=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E8=AF=BB=E5=86=99tun=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kni_intercept.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kni_intercept.c b/kni_intercept.c index 7a5e762..38d29e8 100644 --- a/kni_intercept.c +++ b/kni_intercept.c @@ -351,7 +351,7 @@ int tun_alloc_mq(char *dev, int queues, int *fds,char* tun_path) tun_error(i,fds); return -1; } - +/* //20180618 add set noblock flag= fcntl(fd, F_GETFL, 0); if(flag<0) @@ -363,7 +363,7 @@ int tun_alloc_mq(char *dev, int queues, int *fds,char* tun_path) { MESA_handle_runtime_log(g_kni_comminfo.logger, RLOG_LV_FATAL,KNI_MODULE_INIT,"fcntl():setfl error,errno is:%d,%s",errno,strerror(errno)); } - +*/ //end fds[i] = fd; @@ -906,7 +906,7 @@ int tun_read_data(int fd, char* buffer, size_t size) int ret=0; int max_fd = 0; - +/* if(g_kni_switch_info.write_listq_switch == 0) { fd_set alive_readfd; @@ -926,7 +926,7 @@ int tun_read_data(int fd, char* buffer, size_t size) return 0; } } - +*/ recv_len = read(fd, buffer, size); if(recv_len <0) {