Bug 821

Summary: AODV asserts with function logging enabled
Product: ns-3 Reporter: Josh Pelkey <jpelkey>
Component: routingAssignee: Pavel Boyko <boyko>
Status: RESOLVED FIXED    
Severity: normal CC: boyko, ns-bugs
Priority: P4    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: proposed fix

Description Josh Pelkey 2010-02-18 16:01:30 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);
Comment 1 Josh Pelkey 2010-02-18 16:17:58 UTC
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.
Comment 2 Pavel Boyko 2010-02-21 07:39:13 UTC
Created attachment 768 [details]
proposed fix
Comment 3 Pavel Boyko 2010-02-21 07:40:06 UTC
Josh, please whether the attached patch fixes this problem.
Comment 4 Josh Pelkey 2010-02-21 15:38:36 UTC
That did it, thanks. changeset f3afc3eb9a58