From bb7fe5c0d4436175025827748588456b82258768 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Tue, 13 Nov 2018 03:14:44 -0600 Subject: [PATCH] fix typo in code --- misc.cpp | 2 +- network.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/misc.cpp b/misc.cpp index 3dc91c0..188cdac 100644 --- a/misc.cpp +++ b/misc.cpp @@ -759,7 +759,7 @@ void process_arg(int argc, char *argv[]) //process all options } else if(strcmp(long_options[option_index].name,"no-pcap-mutex")==0) { - use_pcap_mutex=9; + use_pcap_mutex=0; mylog(log_warn,"--no-pcap-mutex enabled, we will assume the underlying pcap calls are threadsafe\n"); } else if(strcmp(long_options[option_index].name,"easy-tcp")==0) diff --git a/network.cpp b/network.cpp index 2617c6d..615782d 100644 --- a/network.cpp +++ b/network.cpp @@ -866,10 +866,9 @@ void init_filter(int port) } ev_sleep(0.001); } + mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt); } - mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt); - if(1) { int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);