Bugzilla – Bug 821
AODV asserts with function logging enabled
Last modified: 2010-02-21 15:38:36 UTC
I'm not sure of the cause yet, but I think I've found where it starts to fail. Line 226 of src/common/packet.cc has NS_LOG_FUNCTION (this << header.GetInstanceTypeId ().GetName () << size); This goes into src/core/type-id.cc and causes an assert, NS_ASSERT (uid <= m_information.size () && uid != 0);
Probably just need to add GetTypeId methods to each of the different message headers in aodv-packet.cc/h. See olsr-header.h/cc as an example.
Created attachment 768 [details] proposed fix
Josh, please whether the attached patch fixes this problem.
That did it, thanks. changeset f3afc3eb9a58