src/helper/yans-wifi-helper.cc
changeset 6052 e146b9c9c7e7
parent 6049 3dbc035a9ee4
child 6053 b17ea72acee9
--- a/src/helper/yans-wifi-helper.cc	Fri Feb 12 21:02:49 2010 -0800
+++ b/src/helper/yans-wifi-helper.cc	Tue Feb 23 10:04:31 2010 -0800
@@ -27,7 +27,7 @@
 #include "ns3/yans-wifi-phy.h"
 #include "ns3/wifi-net-device.h"
 #include "ns3/radiotap-header.h"
-#include "ns3/pcap-file-object.h"
+#include "ns3/pcap-file-wrapper.h"
 #include "ns3/simulator.h"
 #include "ns3/config.h"
 #include "ns3/names.h"
@@ -241,7 +241,7 @@
 
 static void 
 PcapSniffTxEvent (
-  Ptr<PcapFileObject> file,
+  Ptr<PcapFileWrapper> file,
   Ptr<const Packet>   packet,
   uint16_t            channelFreqMhz,
   uint16_t            channelNumber,
@@ -299,7 +299,7 @@
 
 static void 
 PcapSniffRxEvent (
-  Ptr<PcapFileObject> file,
+  Ptr<PcapFileWrapper> file,
   Ptr<const Packet> packet,
   uint16_t channelFreqMhz,
   uint16_t channelNumber,
@@ -400,7 +400,7 @@
   PcapHelper pcapHelper;
   std::string filename = pcapHelper.GetFilenameFromDevice (prefix, device);
 
-  Ptr<PcapFileObject> file = pcapHelper.CreateFile (filename, "w", m_pcapDlt);
+  Ptr<PcapFileWrapper> file = pcapHelper.CreateFile (filename, "w", m_pcapDlt);
 
   phy->TraceConnectWithoutContext ("PromiscSnifferTx", MakeBoundCallback (&PcapSniffTxEvent, file));
   phy->TraceConnectWithoutContext ("PromiscSnifferRx", MakeBoundCallback (&PcapSniffRxEvent, file));