Bug 275

Summary: Queue::Peek should return Ptr<const Packet>
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: make Queue::Peek return Ptr<const Packet>

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