src/common/pcap-writer.cc
changeset 90 d670ba9f726e
parent 54 f860e6f94787
child 110 9ac6d63bfe33
--- a/src/common/pcap-writer.cc	Fri Sep 08 09:20:17 2006 +0200
+++ b/src/common/pcap-writer.cc	Fri Sep 08 18:45:48 2006 +0200
@@ -39,7 +39,6 @@
 PcapWriter::PcapWriter ()
 {
     m_writer = 0;
-    m_writeCallback = makeCallback (&PcapWriter::writeData, this);
 }
 PcapWriter::~PcapWriter ()
 {
@@ -76,7 +75,7 @@
         write_32 (us & 0xffffffff);
         write_32 (packet.getSize ());
         write_32 (packet.getSize ());
-        packet.write (m_writeCallback);
+		m_writer->write (packet.peekData (), packet.getSize ());
     }
 }