Bug 918

Summary: samples/main-packet-header.cc is broken
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: samplesAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: A patch to the main-packet-header.cc

Description Tom Henderson 2010-05-21 01:23:36 EDT
as of ns-3.8 at least.
Comment 1 David 2010-07-19 09:50:52 EDT
Created attachment 937 [details]
A patch to the main-packet-header.cc

The following line was added in TypeId MyHeader::GetTypeId(void) function

.AddConstructor<MyHeader> ()

making it:

TypeId 
MyHeader::GetTypeId (void)
{
  static TypeId tid = TypeId ("ns3::MyHeader")
    .SetParent<Header> ()
    .AddConstructor<MyHeader> ()
    ;
  return tid;
}
Comment 2 Tom Henderson 2010-07-21 00:11:51 EDT
fixed in changeset: e78c1b19f4de

Thanks for posting a fix!