Standardize clock parameter names to 'clock'.
[gem5.git] / dev / etherdump.hh
index ef4399e1aafbab556cf89a7d1fafab68736ba9cd..1296ebb1001bf0e7f3991963452e363609de3fed 100644 (file)
@@ -44,17 +44,16 @@ class EtherDump : public SimObject
 {
   private:
     std::ofstream stream;
+    const int maxlen;
     void dumpPacket(PacketPtr &packet);
     void init();
 
     Tick curtime;
-    Tick s_freq;
-    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); }
+    inline void dump(PacketPtr &pkt) { dumpPacket(pkt); }
 };
 
 #endif // __ETHERDUMP_H__