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:
typedef EtherDumpParams Params;
EtherDump(const Params *p);