Bug 918 - samples/main-packet-header.cc is broken
samples/main-packet-header.cc is broken
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: samples
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-21 01:23 EDT by Tom Henderson
Modified: 2010-07-21 00:11 EDT (History)
0 users

See Also:


Attachments
A patch to the main-packet-header.cc (2.58 KB, patch)
2010-07-19 09:50 EDT, David
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!