src/node/queue.h
changeset 3525 4b8ef7da0ac3
parent 3222 f61c17b62fd1
--- a/src/node/queue.h	Mon Aug 11 10:30:46 2008 -0700
+++ b/src/node/queue.h	Mon Aug 11 10:40:31 2008 -0700
@@ -68,7 +68,7 @@
    * Get a copy of the item at the front of the queue without removing it
    * \return 0 if the operation was not successful; the packet otherwise.
    */
-  Ptr<Packet> Peek (void) const;
+  Ptr<const Packet> Peek (void) const;
 
   /**
    * Flush the queue.
@@ -142,7 +142,7 @@
 
   virtual bool DoEnqueue (Ptr<Packet> p) = 0;
   virtual Ptr<Packet> DoDequeue (void) = 0;
-  virtual Ptr<Packet> DoPeek (void) const = 0;
+  virtual Ptr<const Packet> DoPeek (void) const = 0;
 
 protected:
   // called by subclasses to notify parent of packet drops.