* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Nathan Binkert
*/
/* @file
#define __ETHERDUMP_H__
#include <fstream>
+
#include "dev/etherpkt.hh"
+#include "params/EtherDump.hh"
#include "sim/sim_object.hh"
/*
class EtherDump : public SimObject
{
private:
- std::ofstream stream;
- const int maxlen;
+ std::ostream *stream;
+ const unsigned maxlen;
void dumpPacket(EthPacketPtr &packet);
void init();
- Tick curtime;
-
public:
- EtherDump(const std::string &name, const std::string &file, int max);
+ typedef EtherDumpParams Params;
+ EtherDump(const Params *p);
inline void dump(EthPacketPtr &pkt) { dumpPacket(pkt); }
};