Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/tmp/m5
[gem5.git] / dev / etherdump.hh
index ef4399e1aafbab556cf89a7d1fafab68736ba9cd..62364359e22f70e65cdc39ac051182426f48d7c3 100644 (file)
@@ -44,6 +44,7 @@ class EtherDump : public SimObject
 {
   private:
     std::ofstream stream;
+    const int maxlen;
     void dumpPacket(PacketPtr &packet);
     void init();
 
@@ -52,7 +53,7 @@ class EtherDump : public SimObject
     Tick us_freq;
 
   public:
-    EtherDump(const std::string &name, const std::string &file);
+    EtherDump(const std::string &name, const std::string &file, int max);
 
     inline void dump(PacketPtr &pkt) { if (stream.is_open()) dumpPacket(pkt); }
 };