Bug 275 - Queue::Peek should return Ptr<const Packet>
Queue::Peek should return Ptr<const Packet>
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-07 14:39 UTC by Mathieu Lacage
Modified: 2008-08-11 14:08 UTC (History)
0 users

See Also:


Attachments
make Queue::Peek return Ptr<const Packet> (1.77 KB, patch)
2008-08-07 14:40 UTC, Mathieu Lacage
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lacage 2008-08-07 14:39:57 UTC
It really makes zero sense to return Ptr<Packet>. You want to make sure that callers of Queue::Peek cannot modify the packet returned.
Comment 1 Mathieu Lacage 2008-08-07 14:40:29 UTC
Created attachment 222 [details]
make Queue::Peek return Ptr<const Packet>
Comment 2 Craig Dowell 2008-08-10 13:36:44 UTC
+1
Comment 3 Mathieu Lacage 2008-08-11 14:08:40 UTC
changeset 4b8ef7da0ac3