Renamed OpClass enum members: they all end in 'Op' now.
[gem5.git] / dev / etherdump.hh
index 87824c470d213c3649494718e828c4dc01fd1f37..e22b661663a72800ee9f6ba74615b961871154da 100644 (file)
@@ -34,8 +34,8 @@
 #define __ETHERDUMP_H__
 
 #include <fstream>
-#include "etherpkt.hh"
-#include "sim_object.hh"
+#include "dev/etherpkt.hh"
+#include "sim/sim_object.hh"
 
 /*
  * Simple object for creating a simple pcap style packet trace
@@ -44,7 +44,7 @@ class EtherDump : public SimObject
 {
   private:
     std::ofstream stream;
-    void dumpPacket(PacketPtr packet);
+    void dumpPacket(PacketPtr &packet);
     void init();
 
     Tick curtime;
@@ -54,7 +54,7 @@ class EtherDump : public SimObject
   public:
     EtherDump(const std::string &name, const std::string &file);
 
-    inline void dump(PacketPtr pkt) { if (stream.is_open()) dumpPacket(pkt); }
+    inline void dump(PacketPtr &pkt) { if (stream.is_open()) dumpPacket(pkt); }
 };
 
 #endif // __ETHERDUMP_H__