projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MEM: Add port proxies instead of non-structural ports
[gem5.git]
/
src
/
dev
/
etherdump.hh
diff --git
a/src/dev/etherdump.hh
b/src/dev/etherdump.hh
index 1027ce4d01b9b01b9179120723ad087ce647870c..cc8fa9151262a11aec534e7385756d50221472da 100644
(file)
--- a/
src/dev/etherdump.hh
+++ b/
src/dev/etherdump.hh
@@
-36,9
+36,10
@@
#define __ETHERDUMP_H__
#include <fstream>
#define __ETHERDUMP_H__
#include <fstream>
+
#include "dev/etherpkt.hh"
#include "dev/etherpkt.hh"
-#include "sim/sim_object.hh"
#include "params/EtherDump.hh"
#include "params/EtherDump.hh"
+#include "sim/sim_object.hh"
/*
* Simple object for creating a simple pcap style packet trace
/*
* Simple object for creating a simple pcap style packet trace
@@
-46,13
+47,11
@@
class EtherDump : public SimObject
{
private:
class EtherDump : public SimObject
{
private:
- std::o
fstream
stream;
- const
int
maxlen;
+ std::o
stream *
stream;
+ const
unsigned
maxlen;
void dumpPacket(EthPacketPtr &packet);
void init();
void dumpPacket(EthPacketPtr &packet);
void init();
- Tick curtime;
-
public:
typedef EtherDumpParams Params;
EtherDump(const Params *p);
public:
typedef EtherDumpParams Params;
EtherDump(const Params *p);