[Ns-bugs] [Bug 546] Empty pcap traces

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Fri Apr 17 02:09:48 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=546


Damian Lezama <damian.lezama at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Empty pcap traces for packet|Empty pcap traces
                   |sent with Raw Sockets       |




--- Comment #5 from Damian Lezama <damian.lezama at hotmail.com>  2009-04-17 05:09:48 EDT ---
I've found the bug! It has also nothing to do with raw sockets. The problem is
that the destructors are not being called for all the PcapWriters, hence you
don't close the streams and loose data. Create a topology with various links
and enable all logging for PcapWriter and you will see that clearly.

My quick fix at this moment was adding m_writer->flush() after write in the
method PcapWriter::WriteData. It works for me but performance suffers of
course.

Regards,
Damian


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list