Bug 1407 - Packet::Print() skips headers
Packet::Print() skips headers
Status: CONFIRMED
Product: ns-3
Classification: Unclassified
Component: network
pre-release
All All
: P5 normal
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-06 13:17 EDT by Tom Henderson
Modified: 2013-04-26 15:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2012-04-06 13:17:15 EDT
example src/network/examples/main-packet-header.cc no longer works as expected; it no longer prints out the header (MyHeader::Print()).

I found this in packet.cc, line 429:
#if 0
  // The code below will work only if headers and trailers
  // define the right attributes which is not the case for
  // now. So, as a temporary measure, we use the 
  // headers' and trailers' Print method as shown above.

...

So at some point (which I could not easily find but it dates back to prior to ns-3.4) this was disabled.

Suggested next steps?