Loading ccsrc/Protocols/Pcap/pcap_cygwin_layer.cc +3 −3 Original line number Diff line number Diff line Loading @@ -192,7 +192,7 @@ void* pcap_layer::thread() { const u_char *pkt_data; unsigned char pkt_count = 0; loggers::get_instance().log(">>> pcap_layer::run"); // loggers::get_instance().log(">>> pcap_layer::run"); _running = TRUE; Loading @@ -206,7 +206,7 @@ void* pcap_layer::thread() { continue; } if(result < 0){ loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device)); // loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device)); break; } Loading @@ -229,7 +229,7 @@ void* pcap_layer::thread() { write(_fd[1], &pkt_count, 1);pkt_count++; } _running = FALSE; loggers::get_instance().log("<<< pcap_layer::run"); // loggers::get_instance().log("<<< pcap_layer::run"); return NULL; } Loading ccsrc/Protocols/Pcap/pcap_offline_layer.cc +4 −4 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ void* pcap_offline_layer::thread() { const u_char *pkt_data; unsigned char pkt_count = 0; loggers::get_instance().log(">>> pcap_offline_layer::run"); // loggers::get_instance().log(">>> pcap_offline_layer::run"); memset(&lh, 0, sizeof(lh)); Loading Loading @@ -171,9 +171,9 @@ void* pcap_offline_layer::thread() { if(lh.ts.tv_sec|lh.ts.tv_usec){ long diff = timeval_diff(pkt_header->ts, lh.ts); if(diff > 0) { loggers::get_instance().log("<<< pcap_offline_layer::run: Wait %d msec", diff); // fprintf(stderr,"<<< pcap_offline_layer::run: Wait %d msec", diff); std::this_thread::sleep_for(std::chrono::milliseconds(diff)); loggers::get_instance().log("<<< pcap_offline_layer::run: Wait done"); // fprintf(stderr,"<<< pcap_offline_layer::run: Wait done"); } } } Loading @@ -197,7 +197,7 @@ void* pcap_offline_layer::thread() { write(_fd[1], &pkt_count, 1);pkt_count++; } loggers::get_instance().log("<<< pcap_offline_layer::run"); // loggers::get_instance().log("<<< pcap_offline_layer::run"); return NULL; } Loading Loading
ccsrc/Protocols/Pcap/pcap_cygwin_layer.cc +3 −3 Original line number Diff line number Diff line Loading @@ -192,7 +192,7 @@ void* pcap_layer::thread() { const u_char *pkt_data; unsigned char pkt_count = 0; loggers::get_instance().log(">>> pcap_layer::run"); // loggers::get_instance().log(">>> pcap_layer::run"); _running = TRUE; Loading @@ -206,7 +206,7 @@ void* pcap_layer::thread() { continue; } if(result < 0){ loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device)); // loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device)); break; } Loading @@ -229,7 +229,7 @@ void* pcap_layer::thread() { write(_fd[1], &pkt_count, 1);pkt_count++; } _running = FALSE; loggers::get_instance().log("<<< pcap_layer::run"); // loggers::get_instance().log("<<< pcap_layer::run"); return NULL; } Loading
ccsrc/Protocols/Pcap/pcap_offline_layer.cc +4 −4 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ void* pcap_offline_layer::thread() { const u_char *pkt_data; unsigned char pkt_count = 0; loggers::get_instance().log(">>> pcap_offline_layer::run"); // loggers::get_instance().log(">>> pcap_offline_layer::run"); memset(&lh, 0, sizeof(lh)); Loading Loading @@ -171,9 +171,9 @@ void* pcap_offline_layer::thread() { if(lh.ts.tv_sec|lh.ts.tv_usec){ long diff = timeval_diff(pkt_header->ts, lh.ts); if(diff > 0) { loggers::get_instance().log("<<< pcap_offline_layer::run: Wait %d msec", diff); // fprintf(stderr,"<<< pcap_offline_layer::run: Wait %d msec", diff); std::this_thread::sleep_for(std::chrono::milliseconds(diff)); loggers::get_instance().log("<<< pcap_offline_layer::run: Wait done"); // fprintf(stderr,"<<< pcap_offline_layer::run: Wait done"); } } } Loading @@ -197,7 +197,7 @@ void* pcap_offline_layer::thread() { write(_fd[1], &pkt_count, 1);pkt_count++; } loggers::get_instance().log("<<< pcap_offline_layer::run"); // loggers::get_instance().log("<<< pcap_offline_layer::run"); return NULL; } Loading