Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 3339 → Rev 3340

/branches/STF525/ccsrc/Protocols/Pcap/pcap_cygwin_layer.cc
192,7 → 192,7
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;
 
206,7 → 206,7
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;
}
 
229,7 → 229,7
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;
}
 
/branches/STF525/ccsrc/Protocols/Pcap/pcap_offline_layer.cc
139,7 → 139,7
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));
 
171,9 → 171,9
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");
}
}
}
197,7 → 197,7
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;
}