[Ns-bugs] [Bug 78] OLSR & ascii tracing triggers assertion: packet-metadata.cc, line=1043, cond="GetTotalSize () == data.GetSize ()"
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Sep 24 07:48:40 PDT 2007
http://www.nsnam.org/bugzilla/show_bug.cgi?id=78
------- Comment #1 from gjcarneiro at gmail.com 2007-09-24 10:48 -------
It seems this bug in particular is caused by PacketMetadata::Enable () being
called in the middle of a simulation, after the first packet was sent. In my
example I was starting the OLSR agents before enabling ascii tracing.
Explanation: the OLSR agent receives a packet, creates a subset of the packet,
and later retransmits it to other nodes, it happens in this case that it
receives a packet with no metadata, and tries to re-transmit it with new
prepended headers, thereby triggering the assertion, because by then we have a
packet with only partial metadata.
I'll try to come up with a patch to detect this particular case and give a
clear error message explaining what to do (calling PacketMetadata::Enable () at
the top solves this problem).
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list