Compare Revisions

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

Ignore whitespace Rev 3332 → Rev 3333

/branches/STF525/ccsrc/Protocols/Pcap/pcap_cygwin_layer.cc
101,7 → 101,7
*_bin2hex(buf, sizeof(buf), mac, 6) = 0;
mac_src = buf;
loggers::get_instance().user("pcap_layer::pcap_layer: local MAC is %s", mac_src.c_str());
_params.[params::mac_src] = mac_src;
_params[params::mac_src] = mac_src;
}
std::string mac_bc;
/branches/STF525/ccsrc/Protocols/Pcap/pcap_offline_layer.cc
145,8 → 145,15
 
_running = TRUE;
 
int delay = 1000;
params::const_iterator it;
it = _params.find(std::string("delay"));
if(it != _params.cend()){
delay = std::stoi(it->second);
}
 
// wait a bit before sending first packet
std::this_thread::sleep_for(std::chrono::milliseconds(500));
std::this_thread::sleep_for(std::chrono::milliseconds(delay));
 
while (_running) { // Loop while _running flag is up
// get next frame
/branches/STF525/ccsrc/Protocols/Pcap/pcap_offline_layer.hh
34,7 → 34,7
bool _running; //! Set to true when the thread is running, used in file mode
bool _realtime; //! Set to true if realtime delay shall be added between packets
bool _loop; //! Set to true if playback shall be looped
int _fd[2]; //! pipe to signal to Titan
int _fd[2]; //! pipe to signal to Titan
 
params _o_params;
OCTETSTRING _o_data;