bug 331: constify Packet::PeekHeader

This commit is contained in:
Mathieu Lacage committed 2008-10-10 11:20:53 +02:00
1 parent 32ce5ce0be
commit aea71064a4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ Packet::RemoveHeader (Header &header)
return deserialized;
}
uint32_t
Packet::PeekHeader (Header &header)
Packet::PeekHeader (Header &header) const
{
NS_LOG_FUNCTION (this << &header);
uint32_t deserialized = header.Deserialize (m_buffer.Begin ());
+1 -1
View File
@@ -210,7 +210,7 @@ public:
* \param header a reference to the header to read from the internal buffer.
* \returns the number of bytes read from the packet.
*/
uint32_t PeekHeader (Header &header);
uint32_t PeekHeader (Header &header) const;
/**
* Add trailer to this packet. This method invokes the
* Trailer::GetSerializedSize and Trailer::Serialize