From ce87f979944ec8c0fc83a33ed89219227a91a7e2 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 14 May 2008 14:59:16 -0700 Subject: [PATCH] reset the output stream to get a proper trace path --- src/helper/wifi-helper.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helper/wifi-helper.cc b/src/helper/wifi-helper.cc index a2d59d2fb..75ecbdf62 100644 --- a/src/helper/wifi-helper.cc +++ b/src/helper/wifi-helper.cc @@ -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)); }