reset the output stream to get a proper trace path

This commit is contained in:
Mathieu Lacage
2008-05-14 14:59:16 -07:00
parent 8a7187fba3
commit ce87f97994

View File

@@ -156,6 +156,7 @@ WifiHelper::EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid
oss.str ("");
oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/Tx";
Config::ConnectWithoutContext (oss.str (), MakeBoundCallback (&PcapPhyTxEvent, pcap));
oss.str ("");
oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/RxOk";
Config::ConnectWithoutContext (oss.str (), MakeBoundCallback (&PcapPhyRxEvent, pcap));
}